ABC News: All That Glitters

Web Standards Project member Ethan Marcotte comments on the recently redesigned ABC News website, noting (among other things) that unencoded ampersands are not as harmless as many would like them to be.

D. Keith Robinson also noted this WaSP Buzz, and I left a comment over at Asterisk, which I’ll repeat here.

Yes, moving towards web standards, even without achieving 100% validation, is great. Much, much better than sticking with tag soup. And getting it all right, all at once, on a site that huge, is all but impossible. Great job, Mike!

That said, if you decide to shrug your shoulders at unencoded ampersands, just be aware that they may cause real world problems. It’s not very common, but it does happen.

And no, I’m not a validation junkie, even though I always try hard to make sure any sites I build are valid (until they leave my hands, at which point it may be difficult to maintain validation for reasons beyond my control). I’m just pointing out that encoding ampersands is better than not encoding them, and that not doing so could cause you problems.

The bottom line is this: if it is within your power to make sure ampersands are encoded, do it. If you are not allowed to touch them, you may do well to let whoever is responsible know about the potential problems, and hope all goes well.

Comments

1. October 12, 2004 by Rimantas

Inspired by your example I'v hacked out an extended version of it. Here you can see how php script actully interprets such link. Instead of 14 variables you have got id having veird value glued of other supposed-to-be variables...

2. October 12, 2004 by Roger Johansson

Nice demo. I had something similar happen to me once. That's when I learned my lesson ;) Not that it always helps to know what you should do. Having worked on some large sites, I do see how it can be very hard, even impossible, to have total control of every part of a site, where content is pulled in from various sources, and different departments need to cooperate.

3. October 12, 2004 by Rimantas

Just ot of curiosity, which entity was it? I see ® and § as ones which can happen most often.

4. October 12, 2004 by Roger Johansson

If I remember correctly, it was ⟨ (⟨). It was being used to keep track of which language a site should be displayed in.

Sorry, comments are closed for this post.

Information, sponsorship, and externals

About the author

Roger Johansson is a Swedish web professional specialising in web standards, accessibility, and usability. More about me and this site.

Subscribe

Looking for web hosting?

Try DreamHost!

Use the promo code 456BEREASTREET3 to save USD 20 when you sign up!

Latest articles

Validation statistics from Nikita the Spider Comments off
An analysis of the sites crawled by the bulk validation tool Nikita the Spider during March 2008.
Authentic Jobs API and Affiliates program Comments off
The Authentic Jobs job listing service now has a public API and an affiliate program.
What does Acid3 mean to you and me? Comments off
Opera and Apple have announced that their web browsers pass the Acid3 Browser Test, but how will that help web designers and developers?
Designing Web Navigation (Book review) Comments off
Learn the fundamentals of navigation design and design better navigation systems for large and small sites as well as for web based applications.
DOMAssistant bundle for TextMate Comments off
To save keystrokes and speed up development I have created a DOMAssistant bundle for TextMate.
First impressions of Internet Explorer 8 Beta 1 Comments off
My impressions after trying out Internet Explorer 8 Beta 1 for a couple of days.

More articles

Favourites, here and elsewhere

Affiliation

  • NetRelations
  • Kaffesnobben
  • Dagens recept
  • 9rules network member

Support this site

Show your support by buying a book or two from SitePoint or getting me something from my Amazon Wish List.