You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
241 lines
8.7 KiB
241 lines
8.7 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<!--
|
|
Generated: Tue Jan 07 17:20:11 PST 2003 chacal
|
|
-->
|
|
<html lang='en-US' xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Document Object Model (DOM) Level 2 HTML
|
|
Specification</title>
|
|
<link rel='stylesheet' type='text/css' href='./spec.css' />
|
|
<link rel='stylesheet' type='text/css' href='http://www.w3.org/StyleSheets/TR/W3C-REC.css' />
|
|
<link rel='next' href='expanded-toc.html' />
|
|
<link rel='contents' href='Overview.html#contents' />
|
|
<link rel='copyright' href='copyright-notice.html' />
|
|
<link rel='glossary' href='glossary.html' />
|
|
<link rel='Start' href='Overview.html' />
|
|
<link rel='index' href='def-index.html' />
|
|
<link rel='author' href='mailto:www-dom@w3.org' />
|
|
<link rel='help' href='http://www.w3.org/DOM/' />
|
|
</head>
|
|
<body>
|
|
<div class='navbar' align='center'><a accesskey='n'
|
|
href='expanded-toc.html'>next</a> <a accesskey='c'
|
|
href='Overview.html#contents'>contents</a> <a accesskey='i'
|
|
href='def-index.html'>index</a>
|
|
|
|
<hr title='Navigation area separator' />
|
|
</div>
|
|
|
|
<div class='head'>
|
|
<p><a href='http://www.w3.org/'><img height='48' width='72'
|
|
alt='W3C' src='http://www.w3.org/Icons/w3c_home' /></a></p>
|
|
|
|
<h1 id='title'>Document Object Model (DOM) Level 2 HTML
|
|
Specification</h1>
|
|
|
|
<h2 id='version'>Version 1.0</h2>
|
|
|
|
<!-- REC-DOM-Level-2-HTML-20030109
|
|
-->
|
|
<h2 id='W3C-doctype'>W3C Recommendation 09 January 2003</h2>
|
|
|
|
<dl>
|
|
<dt>This version:</dt>
|
|
|
|
<dd><a
|
|
href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109</a></dd>
|
|
|
|
<dt>Latest version:</dt>
|
|
|
|
<dd><a
|
|
href='http://www.w3.org/TR/DOM-Level-2-HTML'>http://www.w3.org/TR/DOM-Level-2-HTML</a></dd>
|
|
|
|
<dt>Previous version:</dt>
|
|
|
|
<dd><a
|
|
href='http://www.w3.org/TR/2002/PR-DOM-Level-2-HTML-20021108'>http://www.w3.org/TR/2002/PR-DOM-Level-2-HTML-20021108</a></dd>
|
|
</dl>
|
|
|
|
<dl>
|
|
<dt>Editors:</dt>
|
|
|
|
<dd>Johnny Stenback, <i>Netscape</i></dd>
|
|
|
|
<dd>Philippe Le Hégaret, <i>W3C</i></dd>
|
|
|
|
<dd>Arnaud Le Hors, <i>W3C and IBM (until November 2000)</i></dd>
|
|
</dl>
|
|
|
|
<p class='errata'>Please refer to the <a
|
|
href='http://www.w3.org/2000/11/DOM-Level-2-errata'>errata</a> for
|
|
this document, which may include some normative corrections.</p>
|
|
|
|
<p>This document is also available in these non-normative formats:
|
|
<a
|
|
href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/xml-source.xml'>
|
|
XML file</a>, <a
|
|
href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/DOM2-HTML.txt'>
|
|
plain text</a>, <a
|
|
href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/DOM2-HTML.ps'>
|
|
PostScript file</a>, <a
|
|
href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/DOM2-HTML.pdf'>
|
|
PDF file</a>, <a
|
|
href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/DOM2-HTML.html'>
|
|
single HTML file</a>, and <a
|
|
href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/DOM2-HTML.zip'>
|
|
ZIP file</a>.</p>
|
|
|
|
<p class='translation'>See also <a
|
|
href='http://www.w3.org/2000/11/DOM-Level-2-translations'>translations</a>
|
|
of this document.</p>
|
|
|
|
<p class='copyright'><a
|
|
href='http://www.w3.org/Consortium/Legal/2002/ipr-notice-20021231#Copyright'>
|
|
Copyright</a> ©2003 <a href='http://www.w3.org/'><abbr
|
|
title='World Wide Web Consortium'>W3C</abbr></a><sup>®</sup>
|
|
(<a href='http://www.lcs.mit.edu/'><abbr
|
|
title='Massachusetts Institute of Technology'>MIT</abbr></a>, <a
|
|
href='http://www.ercim.org/'><abbr
|
|
title='European Research Consortium for Informatics and Mathematics'>
|
|
ERCIM</abbr></a>, <a href='http://www.keio.ac.jp/'>Keio</a>), All
|
|
Rights Reserved. W3C <a
|
|
href='http://www.w3.org/Consortium/Legal/2002/ipr-notice-20021231#Legal_Disclaimer'>
|
|
liability</a>, <a
|
|
href='http://www.w3.org/Consortium/Legal/2002/ipr-notice-20021231#W3C_Trademarks'>
|
|
trademark</a>, <a
|
|
href='http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231'>
|
|
document use</a> and <a
|
|
href='http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231'>
|
|
software licensing</a> rules apply.</p>
|
|
</div>
|
|
|
|
<hr title='separator from header' />
|
|
<h2 id='abstract'>Abstract</h2>
|
|
|
|
<div class='abstract'>
|
|
<p>This specification defines the Document Object Model Level 2
|
|
HTML, a platform- and language-neutral interface that allows
|
|
programs and scripts to dynamically access and update the content
|
|
and structure of [<a class='noxref'
|
|
href='references.html#HTML40'>HTML 4.01</a>] and [<a class='noxref'
|
|
href='references.html#XHTML10'>XHTML 1.0</a>] documents. The
|
|
Document Object Model Level 2 HTML builds on the Document Object
|
|
Model Level 2 Core [<a class='noxref'
|
|
href='references.html#DOMCore'>DOM Level 2 Core</a>] and is not
|
|
backward compatible with DOM Level 1 HTML [<a class='noxref'
|
|
href='references.html#DOM-Level-1'>DOM Level 1</a>].</p>
|
|
</div>
|
|
|
|
<h2 id='status'>Status of this document</h2>
|
|
|
|
<div class='status'>
|
|
<p><em>This section describes the status of this document at the
|
|
time of its publication. Other documents may supersede this
|
|
document. The latest status of this document series is maintained
|
|
at the W3C.</em></p>
|
|
|
|
<p>This is the 09 January 2003 of "DOM Level 2 HTML". This document
|
|
has been reviewed by W3C Members, software developers, and other
|
|
W3C groups and interested parties, and has been endorsed by the
|
|
Director as a W3C Recommendation. It is a stable document and may
|
|
be used as reference material or cited as a normative reference
|
|
from another document. W3C's role in making the Recommendation is
|
|
to draw attention to the specification and to promote its
|
|
widespread deployment. This document enhances the interoperability
|
|
of the Web.</p>
|
|
|
|
<p>Patent disclosures relevant to this specification may be found
|
|
on the <a
|
|
href='http://www.w3.org/2002/08/02-DOM-Disclosures.html'>Working
|
|
Group's public patent disclosure page</a>.</p>
|
|
|
|
<p>This document has been produced as part of the <a
|
|
href='http://www.w3.org/DOM/Activity.html'>W3C DOM Activity</a>.
|
|
The authors of this document are the DOM Working Group
|
|
participants.</p>
|
|
|
|
<p>The English version of this specification is the only normative
|
|
version. Information about <a
|
|
href='http://www.w3.org/2000/11/DOM-Level-2-translations'>translations</a>
|
|
of this document is available at
|
|
http://www.w3.org/2000/11/DOM-Level-2-translations.</p>
|
|
|
|
<p>The <a href='http://www.w3.org/2000/11/DOM-Level-2-errata'>list
|
|
of known errors</a> in this document is available at
|
|
http://www.w3.org/2000/11/DOM-Level-2-errata</p>
|
|
|
|
<p>Comments on this document are invited and are to be sent to the
|
|
public mailing list <a
|
|
href='mailto:www-dom@w3.org'>www-dom@w3.org</a>. An archive is
|
|
available at <a
|
|
href='http://lists.w3.org/Archives/Public/www-dom/'>http://lists.w3.org/Archives/Public/www-dom/</a>.</p>
|
|
|
|
<p>An <a
|
|
href='http://www.w3.org/2002/11/DOM-Level-2-HTML-Results/'>implementation
|
|
report</a>, based on the DOM Test Suite work, is available at
|
|
http://www.w3.org/2002/11/DOM-Level-2-HTML-Results.</p>
|
|
|
|
<p>A list of <a href='http://www.w3.org/TR/'>current W3C
|
|
Recommendations and other technical documents</a> can be found at
|
|
http://www.w3.org/TR.</p>
|
|
|
|
<p><b>Note:</b>This specification renders the DOM Level 1 HTML
|
|
Recommendation obsolete given that some changes from DOM Level 1
|
|
HTML are incompatible with that specification but represent more
|
|
accurately the state of deployed software. W3C strongly suggests
|
|
that developers and authors conform to DOM Level 2 HTML
|
|
instead.</p>
|
|
</div>
|
|
|
|
<h2 id='table-of-contents'><a id="contents" name='contents'>Table
|
|
of contents</a></h2>
|
|
|
|
<ul class='toc'>
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='expanded-toc.html'>Expanded Table of Contents</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='copyright-notice.html'>Copyright Notice</a></li>
|
|
</ul>
|
|
|
|
<ul class='toc'>
|
|
<li class='tocline2'><a class='tocxref' href='html.html'>1.
|
|
Document Object Model HTML</a></li>
|
|
</ul>
|
|
|
|
<ul class='toc'>
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='changes.html'>Appendix A: Changes</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='idl-definitions.html'>Appendix B: IDL Definitions</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='java-binding.html'>Appendix C: Java language Binding</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='ecma-script-binding.html'>Appendix D: ECMAScript Language
|
|
Binding</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='acknowledgements.html'>Appendix E: Acknowledgements</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='glossary.html'>Glossary</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='references.html'>References</a></li>
|
|
|
|
<li class='tocline2'><a class='tocxref'
|
|
href='def-index.html'>Index</a></li>
|
|
</ul>
|
|
|
|
<div class='navbar' align='center'>
|
|
<hr title='Navigation area separator' />
|
|
<a accesskey='n' href='expanded-toc.html'>next</a> <a
|
|
accesskey='c' href='Overview.html#contents'>contents</a> <a
|
|
accesskey='i' href='def-index.html'>index</a></div>
|
|
</body>
|
|
</html>
|
|
|