- From: Simon Pieters via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 06 Mar 2012 11:45:33 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/html4-differences In directory hutz:/tmp/cvs-serv1364 Modified Files: Overview.src.html Log Message: wrap some new text Index: Overview.src.html =================================================================== RCS file: /sources/public/html5/html4-differences/Overview.src.html,v retrieving revision 1.158 retrieving revision 1.159 diff -u -d -r1.158 -r1.159 --- Overview.src.html 6 Mar 2012 11:42:39 -0000 1.158 +++ Overview.src.html 6 Mar 2012 11:45:31 -0000 1.159 @@ -2039,28 +2039,67 @@ <p>The following features from DOM Level 2 HTML are changed in various ways: <ul> - <li><p><code data-anolis-spec=html title=dom-document-title>document.title</code> now collapses whitespace on getting. - - <li><p><code data-anolis-spec=html title=dom-document-domain>document.domain</code> is made settable, which can change the document's effective script origin. - - <li><p><code data-anolis-spec=html title=dom-document-open>document.open()</code> now either clears the document (if invoked with two or less arguments), or acts like <code data-anolis-spec=html title=dom-open>window.open()</code> (if invoked with three or four arguments). In the former case, throws an exception in XML. - - <li><p><code data-anolis-spec=html title=dom-document-close>document.close()</code>, <code data-anolis-spec=html title=dom-document-close>document.write()</code> and <code data-anolis-spec=html title=dom-document-close>document.writeln()</code> throw an exception in XML. The latter two now support variadic arguments; they can add text to the document's input stream while it is still being parsed, or can imply a call to <code data-anolis-spec=html title=dom-document-open>document.open()</code> or be ignored altogether in some cases. - - <li><p><code data-anolis-spec=html title=dom-document-getElementsByName>document.getElementsByName()</code> now returns all HTML elements with a <code>name</code> attribute matching the argument. - - <li><p><code data-anolis-spec=html title=dom-form-elements>elements</code> on <code data-anolis-spec=html>HTMLFormElement</code> now returns an <code>HTMLFormControlsCollection</code> of <code data-anolis-spec=html>button</code>, <code data-anolis-spec=html>fieldset</code>, <code data-anolis-spec=html>input</code>, <code data-anolis-spec=html>keygen</code>, <code data-anolis-spec=html>object</code>, <code data-anolis-spec=html>output</code>, <code data-anolis-spec=html>select</code> and <code data-anolis-spec=html>textarea</code> elements. <code data-anolis-spec=html title=dom-form-length>length</code> returns the number of nodes in <code data-anolis-spec=html title=dom-form-elements>elements</code>. - - <li><p><code data-anolis-spec=html title=dom-select-add>add()</code> on <code data-anolis-spec=html>HTMLSelectElement</code> now also accepts an integer as its second argument. - - <li><p><code data-anolis-spec=html title=dom-select-remove>remove()</code> on <code data-anolis-spec=html>HTMLSelectElement</code> now removes the first element in the collection if the argument is out of bounds. - - <li><p><code data-anolis-spec=html>a</code> and <code data-anolis-spec=html>area</code> elements now stringify to their <code data-anolis-spec=html title=attr-hyperlink-href>href</code> attribute. - - <li><p>The <code - data-anolis-spec=html title=dom-click>click()</code>, <code - data-anolis-spec=html title=dom-focus>focus()</code> and <code - data-anolis-spec=html title=dom-blur>blur()</code>) methods are now available on all HTML elements. + <li><p><code data-anolis-spec=html + title=dom-document-title>document.title</code> now collapses whitespace on + getting. + + <li><p><code data-anolis-spec=html + title=dom-document-domain>document.domain</code> is made settable, which + can change the document's effective script origin. + + <li><p><code data-anolis-spec=html + title=dom-document-open>document.open()</code> now either clears the + document (if invoked with two or less arguments), or acts like <code + data-anolis-spec=html title=dom-open>window.open()</code> (if invoked with + three or four arguments). In the former case, throws an exception in XML. + + <li><p><code data-anolis-spec=html + title=dom-document-close>document.close()</code>, <code + data-anolis-spec=html title=dom-document-close>document.write()</code> and + <code data-anolis-spec=html + title=dom-document-close>document.writeln()</code> throw an exception in + XML. The latter two now support variadic arguments; they can add text to + the document's input stream while it is still being parsed, or can imply a + call to <code data-anolis-spec=html + title=dom-document-open>document.open()</code> or be ignored altogether in + some cases. + + <li><p><code data-anolis-spec=html + title=dom-document-getElementsByName>document.getElementsByName()</code> + now returns all HTML elements with a <code>name</code> attribute matching + the argument. + + <li><p><code data-anolis-spec=html title=dom-form-elements>elements</code> + on <code data-anolis-spec=html>HTMLFormElement</code> now returns an + <code>HTMLFormControlsCollection</code> of <code + data-anolis-spec=html>button</code>, <code + data-anolis-spec=html>fieldset</code>, <code + data-anolis-spec=html>input</code>, <code + data-anolis-spec=html>keygen</code>, <code + data-anolis-spec=html>object</code>, <code + data-anolis-spec=html>output</code>, <code + data-anolis-spec=html>select</code> and <code + data-anolis-spec=html>textarea</code> elements. <code + data-anolis-spec=html title=dom-form-length>length</code> returns the + number of nodes in <code data-anolis-spec=html + title=dom-form-elements>elements</code>. + + <li><p><code data-anolis-spec=html title=dom-select-add>add()</code> on + <code data-anolis-spec=html>HTMLSelectElement</code> now also accepts an + integer as its second argument. + + <li><p><code data-anolis-spec=html title=dom-select-remove>remove()</code> + on <code data-anolis-spec=html>HTMLSelectElement</code> now removes the + first element in the collection if the argument is out of bounds. + + <li><p><code data-anolis-spec=html>a</code> and <code + data-anolis-spec=html>area</code> elements now stringify to their <code + data-anolis-spec=html title=attr-hyperlink-href>href</code> attribute. + + <li><p>The <code data-anolis-spec=html title=dom-click>click()</code>, + <code data-anolis-spec=html title=dom-focus>focus()</code> and <code + data-anolis-spec=html title=dom-blur>blur()</code>) methods are now + available on all HTML elements. </ul> @@ -2201,41 +2240,126 @@ <p>Some interfaces in DOM Level 2 HTML have been extended.</p> <ul> - <li><p><code data-anolis-spec=html>HTMLOptionsCollection</code> now has a legacy caller, setter creator, and the members <code data-anolis-spec=html title=dom-HTMLOptionsCollection-add>add()</code>, <code data-anolis-spec=html title=dom-HTMLOptionsCollection-remove>remove()</code> and <code data-anolis-spec=html title=dom-HTMLOptionsCollection-selectedIndex>selectedIndex</code> - - <li><p><code data-anolis-spec=html>HTMLLinkElement</code> and <code data-anolis-spec=html>HTMLStyleElement</code> now implement the <code>LinkStyle</code> interface from CSSOM. <span data-anolis-ref>CSSOM</span> - - <li><p><code data-anolis-spec=html>HTMLFormElement</code> now has a named getter and an indexed getter. - - <li><p><code data-anolis-spec=html>HTMLSelectElement</code> now has a getter, <code data-anolis-spec=html title=dom-select-item>item()</code> and <code data-anolis-spec=html title=dom-select-namedItem>namedItem()</code> methods, a setter creator, <code data-anolis-spec=html title=dom-select-selectedOptions>selectedOptions</code> and <code data-anolis-spec=html title=dom-lfe-labels>labels</code> IDL attributes, and members for the form constrain validation API: <code data-anolis-spec=html title=dom-cva-willvalidate>willValidate</code>, <code data-anolis-spec=html title=dom-cva-validity>validity</code>, <code data-anolis-spec=html title=dom-cva-validationMessage>validationMessage</code>, <code data-anolis-spec=html title=dom-cva-checkValidity>checkValidity()</code> and <code data-anolis-spec=html title=dom-cva-setCustomValidity>setCustomValidity()</code>. - - <li><p><code data-anolis-spec=html>HTMLOptionElement</code> now has a constructor <code data-anolis-spec=html title=dom-option>Option</code>. - - <li><p><code data-anolis-spec=html>HTMLInputElement</code> now has the members <code data-anolis-spec=html title=dom-input-files>files</code>, <code data-anolis-spec=html title=dom-input-height>height</code>, <code data-anolis-spec=html title=dom-input-indeterminate>indeterminate</code>, <code data-anolis-spec=html title=dom-input-list>list</code>, <code data-anolis-spec=html title=dom-input-valueAsDate>valueAsDate</code>, <code data-anolis-spec=html title=dom-input-valueAsNumber>valueAsNumber</code>, <code data-anolis-spec=html title=dom-input-width>width</code>, <code data-anolis-spec=html title=dom-input-stepUp>stepUp()</code>, <code data-anolis-spec=html title=dom-input-stepDown>stepDown()</code>, the form constraint validation API members, <code data-anolis-spec=html title=dom-lfe-labels>labels</code>, members for the text field selection API: <code data-anolis-spec=html title="dom-textarea/input-selectionStart">selectionStart</code>, <code data-anolis-spec=html title="dom-textarea/input-selectinEnd">selectionEnd</code>, <code data-anolis-spec=html title="dom-textarea/input-selectionDirection">selectionDirection</code> and <code data-anolis-spec=html title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>. - - <li><p><code data-anolis-spec=html>HTMLTextAreaElement</code> now has the members <code data-anolis-spec=html title=dom-textarea-textLength>textLength</code>, the form constraint validation API members, <code data-anolis-spec=html title=dom-lfe-labels>labels</code> and the text field selection API members. - - <li><p><code data-anolis-spec=html>HTMLButtonElement</code> now has the form constraint validation API members and <code data-anolis-spec=html title=dom-lfe-labels>labels</code>. - - <li><p><code data-anolis-spec=html>HTMLLabelElement</code> now has the member <code data-anolis-spec=html title=dom-label-control>control</code>. - - <li><p><code data-anolis-spec=html>HTMLFieldSetElement</code> now has the members <code data-anolis-spec=html title=dom-fieldset-type>type</code>, <code data-anolis-spec=html title=dom-fieldset-elements>elements</code> and the form constraint validation API members. - - <li><p><code data-anolis-spec=html>HTMLAnchorElement</code> now has the members <code data-anolis-spec=html title=dom-a-relList>relList</code>, <code data-anolis-spec=html title=dom-a-text>text</code>, the URL decomposition IDL attributes: <code data-anolis-spec=html title=dom-a-protocol>protocol</code>, <code data-anolis-spec=html title=dom-a-host>host</code>, <code data-anolis-spec=html title=dom-a-hostname>hostname</code>, <code data-anolis-spec=html title=dom-a-port>port</code>, <code data-anolis-spec=html title=dom-a-pathname>pathname</code>, <code data-anolis-spec=html title=dom-a-search>search</code> and <code data-anolis-spec=html title=dom-a-hash>hash</code>. - - <li><p><code data-anolis-spec=html>HTMLImageElement</code> now has a constructor <code data-anolis-spec=html title=dom-Image>Image</code>, the members <code data-anolis-spec=html title=dom-img-naturalWidth>naturalWidth</code>, <code data-anolis-spec=html title=dom-img-naturalHeight>naturalHeight</code> and <code data-anolis-spec=html title=dom-img-complete>complete</code>. <code data-anolis-spec=html>HTMLAreaElement</code> also has the same new members. - - <li><p><code data-anolis-spec=html>HTMLObjectElement</code> now has the members <code data-anolis-spec=html title=dom-object-contentWindow>contentWindow</code>, the form constraint validation API members and a legacy caller. - - <li><p><code data-anolis-spec=html>HTMLMapElement</code> now has the member <code data-anolis-spec=html title=dom-map-images>images</code>. - - <li><p><code data-anolis-spec=html>HTMLTableElement</code> now has the member <code data-anolis-spec=html title=dom-table-createTBody>createTBody()</code>. - - <li><p><code data-anolis-spec=html>HTMLIFrameElement</code> now has the member <code data-anolis-spec=html title=dom-iframe-contentWindow>contentWindow</code>. + <li><p><code data-anolis-spec=html>HTMLOptionsCollection</code> now has a + legacy caller, setter creator, and the members <code data-anolis-spec=html + title=dom-HTMLOptionsCollection-add>add()</code>, <code + data-anolis-spec=html + title=dom-HTMLOptionsCollection-remove>remove()</code> and <code + data-anolis-spec=html + title=dom-HTMLOptionsCollection-selectedIndex>selectedIndex</code> + + <li><p><code data-anolis-spec=html>HTMLLinkElement</code> and <code + data-anolis-spec=html>HTMLStyleElement</code> now implement the + <code>LinkStyle</code> interface from CSSOM. <span + data-anolis-ref>CSSOM</span> + + <li><p><code data-anolis-spec=html>HTMLFormElement</code> now has a named + getter and an indexed getter. + + <li><p><code data-anolis-spec=html>HTMLSelectElement</code> now has a + getter, <code data-anolis-spec=html title=dom-select-item>item()</code> + and <code data-anolis-spec=html + title=dom-select-namedItem>namedItem()</code> methods, a setter creator, + <code data-anolis-spec=html + title=dom-select-selectedOptions>selectedOptions</code> and <code + data-anolis-spec=html title=dom-lfe-labels>labels</code> IDL attributes, + and members for the form constrain validation API: <code + data-anolis-spec=html title=dom-cva-willvalidate>willValidate</code>, + <code data-anolis-spec=html title=dom-cva-validity>validity</code>, <code + data-anolis-spec=html + title=dom-cva-validationMessage>validationMessage</code>, <code + data-anolis-spec=html title=dom-cva-checkValidity>checkValidity()</code> + and <code data-anolis-spec=html + title=dom-cva-setCustomValidity>setCustomValidity()</code>. + + <li><p><code data-anolis-spec=html>HTMLOptionElement</code> now has a + constructor <code data-anolis-spec=html title=dom-option>Option</code>. + + <li><p><code data-anolis-spec=html>HTMLInputElement</code> now has the + members <code data-anolis-spec=html title=dom-input-files>files</code>, + <code data-anolis-spec=html title=dom-input-height>height</code>, <code + data-anolis-spec=html title=dom-input-indeterminate>indeterminate</code>, + <code data-anolis-spec=html title=dom-input-list>list</code>, <code + data-anolis-spec=html title=dom-input-valueAsDate>valueAsDate</code>, + <code data-anolis-spec=html + title=dom-input-valueAsNumber>valueAsNumber</code>, <code + data-anolis-spec=html title=dom-input-width>width</code>, <code + data-anolis-spec=html title=dom-input-stepUp>stepUp()</code>, <code + data-anolis-spec=html title=dom-input-stepDown>stepDown()</code>, the form + constraint validation API members, <code data-anolis-spec=html + title=dom-lfe-labels>labels</code>, members for the text field selection + API: <code data-anolis-spec=html + title="dom-textarea/input-selectionStart">selectionStart</code>, <code + data-anolis-spec=html + title="dom-textarea/input-selectionEnd">selectionEnd</code>, <code + data-anolis-spec=html + title="dom-textarea/input-selectionDirection">selectionDirection</code> + and <code data-anolis-spec=html + title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>. + + <li><p><code data-anolis-spec=html>HTMLTextAreaElement</code> now has the + members <code data-anolis-spec=html + title=dom-textarea-textLength>textLength</code>, the form constraint + validation API members, <code data-anolis-spec=html + title=dom-lfe-labels>labels</code> and the text field selection API + members. + + <li><p><code data-anolis-spec=html>HTMLButtonElement</code> now has the + form constraint validation API members and <code data-anolis-spec=html + title=dom-lfe-labels>labels</code>. + + <li><p><code data-anolis-spec=html>HTMLLabelElement</code> now has the + member <code data-anolis-spec=html title=dom-label-control>control</code>. + + <li><p><code data-anolis-spec=html>HTMLFieldSetElement</code> now has the + members <code data-anolis-spec=html title=dom-fieldset-type>type</code>, + <code data-anolis-spec=html title=dom-fieldset-elements>elements</code> + and the form constraint validation API members. + + <li><p><code data-anolis-spec=html>HTMLAnchorElement</code> now has the + members <code data-anolis-spec=html title=dom-a-relList>relList</code>, + <code data-anolis-spec=html title=dom-a-text>text</code>, the URL + decomposition IDL attributes: <code data-anolis-spec=html + title=dom-a-protocol>protocol</code>, <code data-anolis-spec=html + title=dom-a-host>host</code>, <code data-anolis-spec=html + title=dom-a-hostname>hostname</code>, <code data-anolis-spec=html + title=dom-a-port>port</code>, <code data-anolis-spec=html + title=dom-a-pathname>pathname</code>, <code data-anolis-spec=html + title=dom-a-search>search</code> and <code data-anolis-spec=html + title=dom-a-hash>hash</code>. + + <li><p><code data-anolis-spec=html>HTMLImageElement</code> now has a + constructor <code data-anolis-spec=html title=dom-Image>Image</code>, the + members <code data-anolis-spec=html + title=dom-img-naturalWidth>naturalWidth</code>, <code + data-anolis-spec=html title=dom-img-naturalHeight>naturalHeight</code> and + <code data-anolis-spec=html title=dom-img-complete>complete</code>. <code + data-anolis-spec=html>HTMLAreaElement</code> also has the same new + members. + + <li><p><code data-anolis-spec=html>HTMLObjectElement</code> now has the + members <code data-anolis-spec=html + title=dom-object-contentWindow>contentWindow</code>, the form constraint + validation API members and a legacy caller. + + <li><p><code data-anolis-spec=html>HTMLMapElement</code> now has the + member <code data-anolis-spec=html title=dom-map-images>images</code>. + + <li><p><code data-anolis-spec=html>HTMLTableElement</code> now has the + member <code data-anolis-spec=html + title=dom-table-createTBody>createTBody()</code>. + + <li><p><code data-anolis-spec=html>HTMLIFrameElement</code> now has the + member <code data-anolis-spec=html + title=dom-iframe-contentWindow>contentWindow</code>. </ul> - <p>In addition, most new content attributes also have corresponding IDL attributes on the elements' interfaces, for instance the <code data-anolis-spec=html title=dom-link-sizes>sizes</code> IDL attribute on <code data-anolis-spec=html>HTMLLinkElement</code> which reflects the <code data-anolis-spec=html title=attr-link-sizes>sizes</code> content attribute. + <p>In addition, most new content attributes also have corresponding IDL + attributes on the elements' interfaces, e.g. the <code data-anolis-spec=html + title=dom-link-sizes>sizes</code> IDL attribute on <code + data-anolis-spec=html>HTMLLinkElement</code> which reflects the <code + data-anolis-spec=html title=attr-link-sizes>sizes</code> content attribute. <h2 id="changelog">HTML5 Changelogs</h2>
Received on Tuesday, 6 March 2012 11:45:40 UTC