[Jspro-devel] Cross-browser compatibility
Brought to you by:
wigleys
|
From: <stu...@ya...> - 2003-09-02 09:58:42
|
Hi,
I've got two problems with the use of
HTMLElement.setAttribute() that i'd like to discuss in
terms of cross-browser compatibility.
I (kind of) understand why IE and Mozilla are
different in the following examples but I'm not really
sure which browser is 'correct'.
myTableCell.setAttribute('colspan', 2) - Mozilla, not
IE
myTableCell.setAttribute('colSpan', 2) - IE, not
Mozilla
myTableCell.setAttribute('class', 'foo') - Mozilla,
not IE
myTableCell.setAttribute('className', 'foo') - IE, not
Mozilla
I've found myself wanting to use these examples in
jsPro to implement a new Debug class for handling
custom debug messages and the redirection of Error
messages.
Lets make this our first Mailing List discussion :-)
Cheers
Stuart
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/
|