Skip to content

Commit

Permalink
Editorial: no IDL attribute is said to reflect an HTMLElement anymore
Browse files Browse the repository at this point in the history
78009c8 suggests this was once introduced for a contextMenu IDL attribute which has since been removed. The remaining IDL attributes that return an HTMLElement (or subclass) have dedicated algorithms.
  • Loading branch information
annevk authored and domenic committed Sep 21, 2017
1 parent 07f699a commit f0f7a14
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -7018,34 +7018,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
return a <code>DOMTokenList</code> object whose associated element is the element in question and
whose associated attribute's local name is the name of the attribute in question.</p>

<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 following algorithm
(stopping at the first point where a value is returned):</p>

<ol>

<li>If the corresponding content attribute is absent, then the IDL attribute must return
null.</li>

<li>Let <var>candidate</var> be the element that the <code
data-x="dom-Document-getElementById">document.getElementById()</code> method would find when
called on the content attribute's element's <span>node document</span> if it were passed as its argument the current value of
the corresponding content attribute.</li>

<li>If <var>candidate</var> is null, or if it is not type-compatible with the IDL
attribute, then the IDL attribute must return null.</li>

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

</ol>

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

</div>


Expand Down

0 comments on commit f0f7a14

Please sign in to comment.