1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
Generated: Tue Jan 07 17:20:15 PST 2003 chacal
6
<html lang='en-US' xmlns="http://www.w3.org/1999/xhtml">
9
<link rel='stylesheet' type='text/css' href='spec.css' />
10
<link rel='stylesheet' type='text/css' href='../../../StyleSheets/TR/W3C-REC.css' />
11
<link rel='next' href='idl-definitions.html' />
12
<link rel='contents' href='Overview.html#contents' />
13
<link rel='copyright' href='copyright-notice.html' />
14
<link rel='glossary' href='glossary.html' />
15
<link rel='Start' href='Overview.html' />
16
<link rel='index' href='def-index.html' />
17
<link rel='author' href='mailto:www-dom@w3.org' />
18
<link rel='help' href='http://www.w3.org/DOM/' />
19
<link rel='prev' href='html.html' />
22
<div class='navbar' align='center'><a accesskey='p'
23
href='html.html'>previous</a> <a accesskey='n'
24
href='idl-definitions.html'>next</a> <a accesskey='c'
25
href='Overview.html#contents'>contents</a> <a accesskey='i'
26
href='def-index.html'>index</a>
28
<hr title='Navigation area separator' />
31
<div class='noprint' style='text-align: right'>
32
<p style='font-family: monospace;font-size:small'>09 January
36
<div class='div1'><a id="Changes" name='Changes'></a>
38
<h1 id='Changes-h1' class='adiv1'>Appendix A: Changes</h1>
41
<dt><i>Editor</i>:</dt>
43
<dd>Philippe Le Hégaret, W3C</dd>
46
<div class='div2'><a id="DOMLevel1to2Changes"
47
name='DOMLevel1to2Changes'></a>
49
<h2 id='DOMLevel1to2Changes-h2' class='adiv2'>A.1: Changes between
50
DOM Level 1 and DOM Level 2</h2>
52
<p><b>Note:</b> The DOM Level 2 HTML module is not backward
53
compatible with the DOM Level 1 HTML module.</p>
56
<dt><b>OMG IDL</b></dt>
58
<dd>The DOM Level 2 specifications use CORBA 2.3.1 instead of CORBA
61
<dt><b>XHTML 1.0 support</b></dt>
63
<dd>The DOM Level 2 HTML module supports HTML 4 as well as XHTML
64
1.0 documents. Therefore, case sensitivity in methods depends on
65
<code>Document</code> support for the feature "<code>XML</code>" as
66
well as "<code>HTML</code>".</dd>
69
<div class='div3'><a id="DOMLevel1Changes"
70
name='DOMLevel1Changes'></a>
72
<h3 id='DOMLevel1Changes-h3' class='adiv3'>A.1.1: Changes to DOM
73
Level 1 interfaces and exceptions</h3>
77
href='html.html#ID-26809268'><code>HTMLDocument</code></a></b></dt>
79
<dd>the method <code>getElementById</code> is now inherited from
80
the <code>Document</code> interface [<a class='noxref normative'
81
href='references.html#DOMCore'>DOM Level 2 Core</a>] where it was
85
href='html.html#ID-94282980'><code>HTMLSelectElement</code></a></b></dt>
87
<dd>The type of the attribute <code>options</code> was changed from
88
<a href='html.html#ID-75708506'><code>HTMLCollection</code></a> to
90
href='html.html#HTMLOptionsCollection'><code>HTMLOptionsCollection</code></a>.<br />
91
The attribute <code>length</code> is no longer readonly and is now
95
href='html.html#ID-70901257'><code>HTMLOptionElement</code></a></b></dt>
97
<dd>Changing the <code>defaultSelected</code> attribute does not
98
reset the state of the form control.<br />
99
<code>index</code> is readonly.</dd>
102
href='html.html#ID-6043025'><code>HTMLInputElement</code></a></b></dt>
104
<dd>the attribute <code>type</code> is no longer read only.<br />
105
The type of the attribute <code>size</code> was changed from
106
<code>DOMString</code> to <code>unsigned long</code>.</dd>
109
href='html.html#ID-24874179'><code>HTMLTextAreaElement</code></a></b></dt>
111
<dd>Changing the <code>defaultValue</code> attribute does not reset
112
the contents of the form control.</dd>
114
<dt><b>Interface <code>HTMLBlockquoteElement</code></b></dt>
116
<dd>this interface has been removed. <code>BLOCKQUOTE</code>
117
elements are now supported by the <a
118
href='html.html#ID-70319763'><code>HTMLQuoteElement</code></a>
122
href='html.html#ID-32774408'><code>HTMLBaseFontElement</code></a></b></dt>
124
<dd>The attribute <code>size</code> is of type
125
<code>long</code>.</dd>
128
href='html.html#ID-17701901'><code>HTMLImageElement</code></a></b></dt>
130
<dd>The <code>lowSrc</code> attribute was removed.<br />
131
The types of the attributes <code>height</code>,
132
<code>hspace</code>, <code>width</code> and <code>vspace</code>
133
were changed from <code>DOMString</code> to <code>long</code>.</dd>
136
href='html.html#ID-9893177'><code>HTMLObjectElement</code></a></b></dt>
138
<dd>The attribute <code>contentDocument</code> was added.</dd>
141
href='html.html#ID-31006348'><code>HTMLAppletElement</code></a></b></dt>
143
<dd>The types of the attributes <code>hspace</code> and
144
<code>vspace</code> were changed from <code>DOMString</code> to
145
<code>long</code>.<br />
146
The attribute <code>object</code> returns the value of the HTML
147
object attribute.</dd>
150
href='html.html#ID-64060425'><code>HTMLTableElement</code></a></b></dt>
152
<dd><code>caption</code>, <code>tHead</code>, <code>tFoot</code>,
153
<code>insertRow</code>, and <code>deleteRow</code> may raise
155
<code>index</code> uses a logical order, and not a document
159
href='html.html#ID-67417573'><code>HTMLTableSectionElement</code></a></b></dt>
161
<dd>The methods <code>insertRow</code> and <code>deleteRow</code>
162
may raise exceptions.</dd>
165
href='html.html#ID-6986576'><code>HTMLTableRowElement</code></a></b></dt>
167
<dd>The attributes <code>rowIndex</code>,
168
<code>sectionRowIndex</code>, and <code>cells</code> are
170
The methods <code>insertCell</code> and <code>deleteCell</code> may
171
raise exceptions.<br />
172
<code>rowIndex</code> uses a logical order, and not a document
176
href='html.html#ID-97790553'><code>HTMLFrameElement</code></a></b></dt>
178
<dd>the attribute <code>contentDocument</code> was added.</dd>
181
href='html.html#ID-50708718'><code>HTMLIFrameElement</code></a></b></dt>
183
<dd>the attribute <code>contentDocument</code> was added.</dd>
185
<dt><b>Module and package name</b></dt>
187
<dd>The module name used in the OMG IDL is now
188
<code>html2</code>.<br />
189
The package name used in the Java bindings is now
190
<code>org.w3c.dom.html2</code>.</dd>
194
<!-- div3 DOMLevel1Changes -->
195
<div class='div3'><a id="DOMLevel2Addons"
196
name='DOMLevel2Addons'></a>
198
<h3 id='DOMLevel2Addons-h3' class='adiv3'>A.1.2: New
203
href='html.html#HTMLOptionsCollection'><code>HTMLOptionsCollection</code></a></b></dt>
206
href='html.html#HTMLOptionsCollection'><code>HTMLOptionsCollection</code></a>
207
interface was added to the HTML module.</dd>
211
<!-- div3 DOMLevel2Addons --></div>
213
<!-- div2 DOMLevel1to2Changes --></div>
215
<!-- div1 Changes -->
216
<div class='navbar' align='center'>
217
<hr title='Navigation area separator' />
218
<a accesskey='p' href='html.html'>previous</a> <a
219
accesskey='n' href='idl-definitions.html'>next</a> <a
220
accesskey='c' href='Overview.html#contents'>contents</a> <a
221
accesskey='i' href='def-index.html'>index</a></div>