[html5] r7801 - [e] (0) Update integration with DOM for DOMTokenList and DOMSettableTokenList Fi [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Apr 10 15:09:07 PDT 2013


Author: ianh
Date: 2013-04-10 15:09:06 -0700 (Wed, 10 Apr 2013)
New Revision: 7801

Modified:
   complete.html
   index
   source
Log:
[e] (0) Update integration with DOM for DOMTokenList and DOMSettableTokenList
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20660
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-04-10 22:00:38 UTC (rev 7800)
+++ complete.html	2013-04-10 22:09:06 UTC (rev 7801)
@@ -7237,6 +7237,7 @@
   <h3 id=common-dom-interfaces><span class=secno>2.7 </span>Common DOM interfaces</h3>
 
   <h4 id=reflecting-content-attributes-in-idl-attributes><span class=secno>2.7.1 </span>Reflecting content attributes in IDL attributes</h4>
+<!--CLEANUP-->
 
   <p>Some IDL attributes are defined to <dfn id=reflect>reflect</dfn> a
   particular content attribute. This means that on getting, the IDL
@@ -7407,28 +7408,12 @@
   <code><a href=#domtokenlist>DOMTokenList</a></code> or <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code>, then
   on getting it must return a <code><a href=#domtokenlist>DOMTokenList</a></code> or
   <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code> object (as appropriate) whose
-  underlying string is the element's corresponding content attribute.
-  When the object mutates its underlying string, the content attribute
-  must itself be immediately mutated. When the attribute is absent,
-  then the string represented by the object is the empty string; when
-  the object mutates this empty string, the user agent must add the
-  corresponding content attribute, with its value set to the value it
-  would have been set to after mutating the empty string. The same
+  associated element is the element in question and whose associated
+  attribute's local name is the name of the attribute in question.
+  The same
   <code><a href=#domtokenlist>DOMTokenList</a></code> or <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code>
   object must be returned every time for each attribute.</p>
 
-  <div class=example>
-
-   <p>If an element with no attributes has its <code title=dom-tokenlist-remove>element.classList.remove()</code>
-   method invoked, the underlying string won't be changed, since the
-   result of removing any token from the empty string is still the
-   empty string. However, if the <code title=dom-tokenlist-add>element.classList.add()</code> method is
-   then invoked, a <code title=attr-class><a href=#classes>class</a></code> attribute
-   will be added to the element with the value of the token to be
-   added.</p>
-
-  </div>
-
   <p>If a reflecting IDL attribute has the type
   <code><a href=#htmlelement>HTMLElement</a></code>, or an interface that descends from
   <code><a href=#htmlelement>HTMLElement</a></code>, then, on getting, it must run the

Modified: index
===================================================================
--- index	2013-04-10 22:00:38 UTC (rev 7800)
+++ index	2013-04-10 22:09:06 UTC (rev 7801)
@@ -7237,6 +7237,7 @@
   <h3 id=common-dom-interfaces><span class=secno>2.7 </span>Common DOM interfaces</h3>
 
   <h4 id=reflecting-content-attributes-in-idl-attributes><span class=secno>2.7.1 </span>Reflecting content attributes in IDL attributes</h4>
+<!--CLEANUP-->
 
   <p>Some IDL attributes are defined to <dfn id=reflect>reflect</dfn> a
   particular content attribute. This means that on getting, the IDL
@@ -7407,28 +7408,12 @@
   <code><a href=#domtokenlist>DOMTokenList</a></code> or <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code>, then
   on getting it must return a <code><a href=#domtokenlist>DOMTokenList</a></code> or
   <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code> object (as appropriate) whose
-  underlying string is the element's corresponding content attribute.
-  When the object mutates its underlying string, the content attribute
-  must itself be immediately mutated. When the attribute is absent,
-  then the string represented by the object is the empty string; when
-  the object mutates this empty string, the user agent must add the
-  corresponding content attribute, with its value set to the value it
-  would have been set to after mutating the empty string. The same
+  associated element is the element in question and whose associated
+  attribute's local name is the name of the attribute in question.
+  The same
   <code><a href=#domtokenlist>DOMTokenList</a></code> or <code><a href=#domsettabletokenlist>DOMSettableTokenList</a></code>
   object must be returned every time for each attribute.</p>
 
-  <div class=example>
-
-   <p>If an element with no attributes has its <code title=dom-tokenlist-remove>element.classList.remove()</code>
-   method invoked, the underlying string won't be changed, since the
-   result of removing any token from the empty string is still the
-   empty string. However, if the <code title=dom-tokenlist-add>element.classList.add()</code> method is
-   then invoked, a <code title=attr-class><a href=#classes>class</a></code> attribute
-   will be added to the element with the value of the token to be
-   added.</p>
-
-  </div>
-
   <p>If a reflecting IDL attribute has the type
   <code><a href=#htmlelement>HTMLElement</a></code>, or an interface that descends from
   <code><a href=#htmlelement>HTMLElement</a></code>, then, on getting, it must run the

Modified: source
===================================================================
--- source	2013-04-10 22:00:38 UTC (rev 7800)
+++ source	2013-04-10 22:09:06 UTC (rev 7801)
@@ -6780,6 +6780,7 @@
   <h3>Common DOM interfaces</h3>
 
   <h4>Reflecting content attributes in IDL attributes</h4>
+<!--CLEANUP-->
 
   <p>Some IDL attributes are defined to <dfn>reflect</dfn> a
   particular content attribute. This means that on getting, the IDL
@@ -6954,30 +6955,12 @@
   <code>DOMTokenList</code> or <code>DOMSettableTokenList</code>, then
   on getting it must return a <code>DOMTokenList</code> or
   <code>DOMSettableTokenList</code> object (as appropriate) whose
-  underlying string is the element's corresponding content attribute.
-  When the object mutates its underlying string, the content attribute
-  must itself be immediately mutated. When the attribute is absent,
-  then the string represented by the object is the empty string; when
-  the object mutates this empty string, the user agent must add the
-  corresponding content attribute, with its value set to the value it
-  would have been set to after mutating the empty string. The same
+  associated element is the element in question and whose associated
+  attribute's local name is the name of the attribute in question.
+  The same
   <code>DOMTokenList</code> or <code>DOMSettableTokenList</code>
   object must be returned every time for each attribute.</p>
 
-  <div class="example">
-
-   <p>If an element with no attributes has its <code
-   title="dom-tokenlist-remove">element.classList.remove()</code>
-   method invoked, the underlying string won't be changed, since the
-   result of removing any token from the empty string is still the
-   empty string. However, if the <code
-   title="dom-tokenlist-add">element.classList.add()</code> method is
-   then invoked, a <code title="attr-class">class</code> attribute
-   will be added to the element with the value of the token to be
-   added.</p>
-
-  </div>
-
   <p>If a reflecting IDL attribute has the type
   <code>HTMLElement</code>, or an interface that descends from
   <code>HTMLElement</code>, then, on getting, it must run the




More information about the Commit-Watchers mailing list