Note: The DOM Level 2 HTML module is not backward compatible with the DOM Level 1 HTML module.
Document support for the feature "XML" as
well as "HTML".HTMLDocumentgetElementById is now inherited from
the Document interface [DOM Level 2 Core] where it was
moved.HTMLSelectElementoptions was changed from
HTMLCollection to
HTMLOptionsCollection.length is no longer readonly and is now
unsigned.HTMLOptionElementdefaultSelected attribute does not
reset the state of the form control.index is readonly.HTMLInputElementtype is no longer read only.size was changed from
DOMString to unsigned long.HTMLTextAreaElementdefaultValue attribute does not reset
the contents of the form control.HTMLBlockquoteElementBLOCKQUOTE
elements are now supported by the HTMLQuoteElement
interface.HTMLBaseFontElementsize is of type
long.HTMLImageElementlowSrc attribute was removed.height,
hspace, width and vspace
were changed from DOMString to long.HTMLObjectElementcontentDocument was added.HTMLAppletElementhspace and
vspace were changed from DOMString to
long.object returns the value of the HTML
object attribute.HTMLTableElementcaption, tHead, tFoot,
insertRow, and deleteRow may raise
exceptions.index uses a logical order, and not a document
order.HTMLTableSectionElementinsertRow and deleteRow
may raise exceptions.HTMLTableRowElementrowIndex,
sectionRowIndex, and cells are
readonly.insertCell and deleteCell may
raise exceptions.rowIndex uses a logical order, and not a document
order.HTMLFrameElementcontentDocument was added.HTMLIFrameElementcontentDocument was added.html2.org.w3c.dom.html2.HTMLOptionsCollectionHTMLOptionsCollection
interface was added to the HTML module.