Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (1) Make HTMLElement-type reflecting IDL attributes only set t…
…he attribute if the element they're being set to would then match the attribute.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12945

git-svn-id: http://svn.whatwg.org/webapps@6568 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 22, 2011
1 parent 61e83f5 commit f696ece
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion complete.html
Expand Up @@ -8200,7 +8200,10 @@ <h4 id=reflecting-content-attributes-in-idl-attributes><span class=secno>2.8.1 <

<li>Otherwise, it must return <var title="">candidate</var>.</li>

</ol><p>On setting, if the given element has an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute, then the content attribute must
</ol><p>On setting, if the given element has an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute, and has the same <a href=#home-subtree>home
subtree</a> as the element of the attribute being set, and the
given element is the first element in that <a href=#home-subtree>home subtree</a>
whose <a href=#concept-id title=concept-ID>ID</a> is the value of that <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute, then the content attribute must
be set to the value of that <code title=attr-id><a href=#the-id-attribute>id</a></code>
attribute. Otherwise, the content attribute must be set to the empty
string.</p>
Expand Down
5 changes: 4 additions & 1 deletion index
Expand Up @@ -8064,7 +8064,10 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

<li>Otherwise, it must return <var title="">candidate</var>.</li>

</ol><p>On setting, if the given element has an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute, then the content attribute must
</ol><p>On setting, if the given element has an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute, and has the same <a href=#home-subtree>home
subtree</a> as the element of the attribute being set, and the
given element is the first element in that <a href=#home-subtree>home subtree</a>
whose <a href=#concept-id title=concept-ID>ID</a> is the value of that <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute, then the content attribute must
be set to the value of that <code title=attr-id><a href=#the-id-attribute>id</a></code>
attribute. Otherwise, the content attribute must be set to the empty
string.</p>
Expand Down
4 changes: 4 additions & 0 deletions source
Expand Up @@ -8038,6 +8038,10 @@ is conforming depends on which specs apply, and leaves it at that. -->
</ol>

<p>On setting, if the given element has an <code
title="attr-id">id</code> attribute, and has the same <span>home
subtree</span> as the element of the attribute being set, and the
given element is the first element in that <span>home subtree</span>
whose <span title="concept-ID">ID</span> is the value of that <code
title="attr-id">id</code> attribute, then the content attribute must
be set to the value of that <code title="attr-id">id</code>
attribute. Otherwise, the content attribute must be set to the empty
Expand Down

0 comments on commit f696ece

Please sign in to comment.