| From: Christopher Schultz [mailto:[EMAIL PROTECTED]
| Sent: Sunday, 07 January, 2007 09:56
| 
| At any rate, you should try to avoid anything that's not a W3C standard.

Yeah, so stay away from Mozilla's little "shortcuts" like using
document.getElementsByTagName('tag')['name'] (gEBTN() is defined to return a
NodeList, not a NamedNodeMap).  And be sure to avoid appending a new row to
a table by just blithely calling
tbl.appendChild(document.createElement("tr")) -- even through Mozilla
accepts it and does what you might expect, it's wrong (that code will append
a new child to the *table*, so it'll be treated as a second table body, so
it won't show up)  So use the W3C standard of
tbl.lastChild.appendChild(document.createElement("tr")), like IE enforces.

Sorry, I just get a little twitchy when people start mooning over Mozilla's
W3C compliance.  Sure, it's pretty compliant, and yes IE is a festering
cesspool, but don't get suckered into the "Well, it works on Mozilla/FF/NS,
so it *must* be W3C compliant..." trap.  Every browser has it's little
departures from the spec, keep your eyes open and test with every (version
of every) browser you can get your hands on.

-----------------------------------------
------------------------------------------------------------
The information contained in this message is confidential
proprietary property of Nelnet, Inc. and its affiliated 
companies (Nelnet) and is intended for the recipient only.
Any reproduction, forwarding, or copying without the express
permission of Nelnet is strictly prohibited. If you have
received this communication in error, please notify us
immediately by replying to this e-mail.
------------------------------------------------------------


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to