Categories
XHTML/HTML

XHTMLating feeds

Jeff has been adding SVG annotation, as well as objects to his weblog design. When using SVG, the first issue that arises is serving up XHTML in order for the SVG to be processed correctly. This also means serving up your Atom feeds, accordingly.

In Jeff’s case, he’s using the object element to incorporate SVG annotating the post type. If he inlined his SVG, and wanted it processed correctly in feed readers (both big ‘ifs’–stripping out the SVG is also an acceptable response), two things need to be modified.

First, there’s an html_type option value that needs to be adjusted. The only want to do this at this time is to manually update it in the database. I had thought there was a modification made to WordPress to add this as an Administration option, but I couldn’t find it in the checked in code.

I hard coded my feed for this weblog to XHTML, and made the appropriate adjustments, removing the CDATA section and adding a wrapping DIV element (source for feed and comments feed).

To ensure the two feed files don’t get overwritten, I have a plug-in that I use to override the location of the atom feed files, pointing the location to files in my theme directory.

This is only a temporary fix, though. The real fix would be to provide an option to set the html_type in the admin page, which then serves the weblog pages up accordingly, as well as being used to set the type in the feeds. The value should also be used to determine the output of the content in the feeds.

All of this could be done in plug-ins. What can’t, is handling input from readers when serving up XHTML pages. Input from readers enters WordPress in several different places in the code, most of which do not have hooks allowing us to override the code to provide our own. The only way WordPress will be able to effectively do XHTML is through a commitment to make this a change in the underlying base code.

Since the WordPress developers have not shown any interest in supporting XHTML, and since I haven’t seen a lot of interest in XHTML support in WordPress from my own explorations and published posts, this is just not a challenge I’ve been eager to take on.

The real question is will Microsoft support the XHTML MIME type in IE8? Not having support for XHTML is one of the major browsers is probably the biggest hold up on more widespread support for XHTML. Otherwise, I would think that the increasing interest in SVG would start generating enough movement towards XHTML to finally trickle it’s way into the WordPress community, regardless of the aversion to XHTML of the development team.

PS I would appreciate help testing my current XHTML validation in my comments. You can’t hurt anything with the way the comments are now currently moderated.

Categories
SVG XHTML/HTML

There’s open and then there’s open

Recovered from the Wayback Machine.

As an example of Microsoft’s new commitment to being more open with web developers, the company is releasing the IE8 beta to invited testers only, with a more general release later. Perhaps by “open”, we don’t all mean the same thing?

I also noticed that the company has not provided any answers to the questions we’ve been asking about the “super standards mode”. In particular, nothing from the company about support for XHTML and SVG/MathML. A simple, “Yes, we’re supporting XHTML” would have added real weight to all those bold pronouncements of openness and standards support this last week. Instead, the company spends it’s time, spreading fooflah, and working the community.

As an aside, you know, there’s nothing sadder in nature than a wasp without its stinger.

Categories
Web

htaccess utility

Now this is nice: an .htaccess editor, as well as a reference to an .htaccess generator. The editor has a decent interface, though it’s not perfect. It needs online help attached to each of the options, and the site needs reference to example files.

As more non-techs host their own sites, tools like this will make the move from being helpful, to being essential.

Categories
Technology Web

Microsoft to world: do as we say

Recovered from the Wayback Machine.

Jeffrey Zeldman writes in support of the Microsoft IE8 meta tag, which we find out is a done deal.

To understand version targeting—which we ought to try to do, since Microsoft intends to implement it and hopes at least some of us will opt in—let us examine two different sets of customers that Microsoft’s browser must satisfy.

Did we really think that A List Apart was rolling the meta tag out earlier in order to gather comments from the community? Perhaps take alternative suggestions? No, this was nothing more than Microsoft working with a few web elite to shove more IE specific nonsense down our throats.

In his newest writing on this topic, Zeldman writes that yes, the meta tag is ugly, but really, what’s the harm?

Still, even if version targeting were merely the tribute Microsoft’s browser engineers had to pay their corporate overlords to retain permission to keep improving IE’s standards compliance, what would be the harm? The meta element is valid, and its use is optional. The HTTP header is easy, and leaves your markup pure.

He also hints at the “goodies” coming in IE8, which if they don’t excite you overmuch it’s because we’ve seen them before: in Firefox, in Safari, and in Opera. He further goes on to say that Microsoft is really only thinking of us with this new form of version targeting.

Today’s IE is light years more compliant than the old versions we struggled with. And Microsoft has promised to improve compliance forever. If we opt in, we can expect the same level of scripting support in IE that we get from the browsers we love. Improved, predictable standards support in all browsers. Isn’t that what we all want?

If we opt in…

Let’s reframe this discussion. I have worked, hard, to get this weblog to serve up XHTML 1.1 strict pages. I have worked, hard, to master both SVG and CSS in order to style the site, as well as provide some of the functionality. I’ve also worked equally hard to make sure that the JavaScript isn’t funky, strange, doesn’t eat up more CPU or memory than necessary, and works in my target browsers. I don’t claim any of my effort is perfect, only that I work hard to ensure my work is clean, accessible, and standard.

How is Microsoft rewarding me for this hard work? By forcing me to add a meta tag, or change the HTTP header. Not to use a standard meta tag that’s meaningful to other browsers, or change the HTTP header in a universally standard way, no. I am asked, once again, to change my web site specifically in order to accommodate IE.

Wow! Did you feel that, too? I just felt a tug on my shoulders, like I was a puppet and someone was pulling my strings.

Zeldman also gave space at A List Apart for a Jeremy Keith, the only person who spoke out against the new IE8 meta tag whose opinion Zeldman seems to respect. Keith says all I want to say, and more.

The reasoning here is that less savvy developers shouldn’t have to worry their little heads about adding one extra line to their documents. Instead, they should be encouraged to continue to write to the quirks of one specific browser version from the market leader. That their documents will “break” in other browsers is not Microsoft’s problem. The counterpoint to this condescending worldview is that standards-aware developers are the ones best placed to add a single line of markup to their documents—though, for some unexplained reason, the instruction for up-to-date rendering (IE=edge) is strongly discouraged.

This strategy is doomed to failure. Standards-aware developers, by their very nature, will object to adding a line of unnecessary markup to their documents just to get one single browser to behave as it should by default.

Keith also asks a very pertinent question: how do we know for sure that civilization, as we know it, is doomed if the meta tag isn’t used? In other words, there’s been a rather breathless assumption on the part of Microsoft that releasing IE8 without this silly meta tag will break vast swatches of the web. Shouldn’t we, instead, see what happens with the beta release of the browser?

I agree with Keith’s suggestion of let’s see what happens. If the web sites Microsoft is so concerned about are intranet sites, the companies that built the crappy site are also the type of companies that won’t upgrade to a new browser version until it’s been released for two years. Frankly, most are probably still using IE6, in which case what IE8 does is moot.

Another assumption by Microsoft (and Zeldman, more’s the pity) is that there are vast numbers of web developers and designers who seemingly don’t read the news, weblogs, design sites, Microsoft’s site, and so on. They must not read because according to Zeldman and Microsoft, they won’t know that Things are Different in IE8 and thus must be protected from themselves. Frankly, I find such assumptions of mass, blanket stupidity and incompetence to be insulting, as well as elitist.

True, there are “bad” sites, but less now than in the past, not the least of which because so much content is now generated from templates rather than created by hand. True, not every site meets some standard of ALA purity, but most designers and developers–and even preachers and school teachers–do the best they can, and that includes keeping up with the changes in both standards and browsers. After all, who does Zeldman think attends all of his company’s A List Apart events?

If, as Keith mentions in his writing, we have a long enough beta period for IE8, this should be sufficient for designers and developers, WYSIWYG tool creators, and preachers and school teachers to implement whatever changes they need in order to remove the IE cruft. Rather than a meta tag, what we needed from Microsoft was clear communication about to expect from IE8. Instead what we’ve received is silence occasionally punctured by vague hints, an ACID2 test graphic, which we now know will fail unless the meta tag is present, and another example of Microsoft asking the web world to adapt to it if we want to move forward.

I am a web developer, not a designer, so perhaps my opinion should be taken with a grain of salt. However, as a web developer, I’m also filled with a sense of unease from what was not said in Zeldman’s writing. We’ve not had any official confirmation from Microsoft that using the HTML5 DOCTYPE will turn on “standards” mode. We’ve also not had any confirmation from Microsoft that it will, finally, support the XHTML MIME type, and that this will also trigger “standards” mode. I wasn’t holding my breath on SVG and MathML, but Microsoft has been abnormally quiet about these specifications, too.

Surely, if any action is going to “break the web”, as Microsoft’s mantra seems to be, it’s the company’s unwillingness to support standards in seeming conflict with its own proprietary Silverlight technologies that is more at risk for “breaking the web” than the use of a silly meta tag or not.

Frankly, if this discussion was only about the addition of a meta tag for versioning, I’m not sure that Zeldman’s audience would be up in arms. However, it’s more than just the new meta tag that’s at stake: it is the very future of the web. A future no longer dominated by any browser. A future where we’re free to truly explore the wondrous tools with which we can build sites, no longer held back by a company that has not acted in good faith, either in the past or, sadly, today.

After reading Zeldman’s and Keith’s postings, I visited the IE weblog. I looked for answers to the questions we asked: about HTML5 triggering standards mode; whether IE8 will support XHTML and SVG; will Microsoft actively participate as part of the X/HTML5 effort; what can we expect from IE8. Nothing. Not a word. Yet we’re supposed to accept, on faith, that this “minor” change to our web pages will be the key to the future?

Microsoft still doesn’t “get it”. Evidently, neither does Zeldman.

Categories
Technology Web

Light grey screen of mild achiness

Recovered from the Wayback Machine.

Jeff Schiller writes:

It turns out, as Shelley has mentioned, that the best developer experience to work on XHTML is also (by far) Opera. Instead of Firefox’s “yellow screen of death” we’re greeted with Opera’s “light grey screen of mild achiness”. Instead of cryptic messages about unexpected tags, the element which failed to be terminated and the tag that broke the XML parsing are highlighted for you.

Jeff just finished creating a new site design that incorporates XHML+SVG. He also did something I didn’t think to do, which was submit a bug to Mozilla for the poor way Firefox manages bad XHTML. Opera really does provide a beautifully graceful way of dealing with bad XML, including an option to re-parse the page as HTML. Even Safari does a better job than Firefox.

Jeff is also using content negotiation with his site, which I don’t use with this site. Because of this decision, my stats show that only 3.9% of page accesses are from IE. I do support content negotiation for my topmost site, which is accessed about 39% of the time with IE. However, I have been recently rethinking my decision to use content negotiation.

I run the risk of losing page views by serving pages up as XHTML. At the same time, though, if more of us did this, I wonder how much this would hasten the demise of browsers that don’t support what is now a fairly mature standard specification?

Sometimes you have to “break the web” in order to save it.