W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Re: HTML-DOM: getElementById

From: Joe D Willliams <JOEDWIL@earthlink.net>
Date: Mon, 16 Jul 2001 09:15:54 -0700
Message-ID: <128701c10e12$98721ca0$99d7fc9e@a>
To: <www-dom@w3.org>, "Joseph Kesselman" <keshlam@us.ibm.com>
> Or move toward the XHTML
> world and declare the document invalid -- though there is so much broken
> HTML currently in use that this isn't always an option


Hi All, 

I completely agree that even though duplicate IDs should 
stop processing (not just match none), I think we owe  
some advice for what to do when part of the broken HTML 
universe is encountered. 
Hey, you just have to start from the beginning and get it 
well-formed and obeying the uniqe ID rule and others before 
you can work with it using XML/DOM tech. 
What if the broken HTML uses name instead of ID? 
There are probably ten other considerations like this. 
What to do with broken stuff.? Well, you must start by fixing it!:)
How about running it thru TIDY or equivalent before processing 
it further. Just finding out that it is broken is certainly some 
level of accomplishment that should be recognized as a good thing. 
I hope we don't get to a point where we start bending some 
basic structures and rules to accomodate broken stuff that 
should just be fixed. 

Thank You and Best Regards, 
Joedw 
web3dc 
Received on Monday, 16 July 2001 12:18:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT