[Javascript] 'name' property in forms not XHTML valid

David Dorward david at dorward.me.uk
Tue Jan 24 15:52:08 CST 2006


On Tue, 2006-01-24 at 16:37 -0500, Roger Roelofs wrote:

> XHTML strict is not supposed to be served with the text/html mime  
> type. 

No version of XHTML is /supposed/ to be served as text/html. XHTML 1.0
(all variants, including Strict) /may/ be served as text/html, providing
it conforms to Appendix C. Of course, since it is then treated as tag
soup, doing so is an exercise in futility (and while Appendix C provides
guidelines to make XHTML "compatible" with HTML, it doesn't make it
*entirely* compatible, so conforming browsers spew ">" characters all
over the rendered document.)

Unless there is a need for mixing namespaces, sticking to HTML 4.01
Strict is the best choice in almost every case. (The exceptions are when
you have clients[1] who demand the foisting of new windows on
unsuspecting users (the target attribute), and when dealing with ordered
lists with breaks in them (the start attribute), in which case HTML 4.01
Transitional is the answer).

[1] Bad clients ;)

-- 
David Dorward                           <http://dorward.me.uk/>
"Anybody remotely interesting is mad, in some way or another."
                             -- The Greatest Show in the Galaxy



More information about the Javascript mailing list