T
TastyWheat
I've come upon two sources for DOM specification and I'm wondering if
one is outdated or a different implementation or what. My first source
is from W3C (using table as an example):
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-64060425
My other source is from Sun Microsystems:
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/dom/org/w3c/dom/html/HTMLTableElement.html
Obviously you can see some differences like W3C says HTMLTableElement
has a read/write attribute for cellPadding. Sun says that you need to
read and set this property using getCellPadding() and setCellPadding()
(respectively). Also, I've seen different uses for creating objects
such as:
document.createElement("option")
VS.
new Option(...,...)
So is one of these more correct than the other? Is there a problem
when mixing these two standards?
one is outdated or a different implementation or what. My first source
is from W3C (using table as an example):
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-64060425
My other source is from Sun Microsystems:
http://java.sun.com/j2se/1.5.0/docs/guide/plugin/dom/org/w3c/dom/html/HTMLTableElement.html
Obviously you can see some differences like W3C says HTMLTableElement
has a read/write attribute for cellPadding. Sun says that you need to
read and set this property using getCellPadding() and setCellPadding()
(respectively). Also, I've seen different uses for creating objects
such as:
document.createElement("option")
VS.
new Option(...,...)
So is one of these more correct than the other? Is there a problem
when mixing these two standards?