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

Nick Fitzsimons nick at nickfitz.co.uk
Wed Jan 25 03:36:11 CST 2006


> 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/>

In the new window case, one can always take advantage of one's bad
clients' general cluelessness by using JavaScript to spawn the new window,
and omitting the target="_blank". As they never turn JS off (and probably
don't know how to), they get the despicable behaviour they desire, while
your markup can remain as valid HTML 4.01 Strict. Anybody who regularly
browses with JS off will be used to using the back button as nature
intended, so nobody has a problem.

Regards,

Nick.
-- 
Nick Fitzsimons
http://www.nickfitz.co.uk/




More information about the Javascript mailing list