On 25 Jun 2010, at 06:39, Dan Webb wrote: > Years ago, I use to painstakingly and religiously convert & to & > when ever I encountered it (HTML 4.01 Strict doctype). > > It's still pegged as invalid by the W3C validator, but is it really > still necessary these days?
Yes > What could possibly go wrong in modern browsers? * Your ampersand might be followed by a genuine entity name. "copy" is a good one to have as a field name in a form. * Your pile of validity errors might obscure, by weight of numbers, another screw up on the part of the author that some browsers can't recover from. > I'm talking specifically here about ampersands in URLs that are > provided to me by database vendors, which I have no control over; I'm > about to start inserting literally 100s of them into static html > pages. If they are giving you URLs (as opposed to fragments of HTML with errors in them) then the solution is simple - use a tool more powerful than a simple text editor. If not, then run the documents through a fix up script (like HTML Tidy), then for a link check over the results, and hope that they aren't returning 200 OKs for any pages which had real entities in them in the first place. -- David Dorward http://dorward.me.uk ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [email protected] *******************************************************************
