[Javascript] Javascript detection
Paul Novitski
paul at juniperwebcraft.com
Tue Jan 2 16:24:02 CST 2007
At 1/2/2007 01:40 PM, David Dorward wrote:
> > href="switchboard.php?something=123456&dest=contact.php">Contact Us</a>
>
>Ampersands followed by non-name characters must be represented by
>entities.
...
> > <form action="contact.php">
>
>Forms use GET by default.
...
> > <input type="hidden" value="123456" name="something" />
>
>Strict varients of (X)HTML (which I hope we are all using) require
>child elements of forms to be block level
I appreciate your vigilance, David. Actually I was deliberately
omitting everything but the bare essentials necessary to demonstrate
my points in order to provide clear examples, presenting a kind of
pseudocode and not complete, validatable markup. I probably should
have appended that caveat.
>... but lets avoid XHTML for the most part. In the majority of cases,
>its a lot of trouble for no benefit, and is usually done wrong.
Unless I'm misunderstanding, I disagree with this point. I don't
find the rule-set of XHTML-Strict to be at all onerous; in fact its
very strictness and consistency provides a lack of ambiguity I'm
quite comfortable with. More to your point, though, I'm one of those
ne'er-do-wells who's been serving up XHTML as text/html to
accommodate IE. I use XHTML-Strict because a) it's the future and b)
it works, even served with the text/html content-type and no xml
prolog, very consistently in my target browsers and c) heck, I
already shifted from HTML to XHTML and I don't want to have to get
back into those old habits for another year or two just to have to
switch back again. I hope it gets me a lighter sentence that I
promise to serve it up as xml as soon as an XHTML-compatible IE
version gains sufficient market share.
This is off-topic here but I'd be open to arguments to the contrary
off-list or in one of the other lists we're both members of.
Warm regards,
Paul
More information about the Javascript
mailing list