[go: nahoru, domu]

Skip to content

Commit

Permalink
[css-pseudo-4] Switch window.getPseudoElements(elem,type) to Element.…
Browse files Browse the repository at this point in the history
…pseudo(type). #3541
  • Loading branch information
fantasai committed Feb 2, 2019
1 parent 0abf9c8 commit 5b3c357
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions css-pseudo-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -927,18 +927,17 @@ Interface CSSPseudoElementList</h3>
in the collection for that type.

<h3 id="window-interface">
Addition to the <code>window</code> interface</h3>
Addition to the <code>Element</code> interface</h3>

A new method is added to the <code>Window</code> interface to retrieve
A new method is added to the <code>Element</code> interface to retrieve
pseudo-elements created by a given element for a given type:
<pre class="idl">
partial interface Window {
CSSPseudoElementList <a href="#dom-window-getpseudochildren">getPseudoElements</a>(Element elt,
CSSOMString type);
partial interface Element {
CSSPseudoElementList <a href="#dom-window-getpseudochildren">pseudo</a>(CSSOMString type);
};
</pre>

The <dfn id="dom-window-getpseudochildren"><code>getPseudoElements()</code></dfn> method
The <dfn id="dom-element-pseudo"><code>pseudo()</code></dfn> method
is used to retrieve all <code>CSSPseudoElement</code> instances
created by the element <code>elt</code> for the type <code>type</code>.
Its return value is a <code>CSSPseudoElementList</code>,
Expand Down Expand Up @@ -967,6 +966,7 @@ Changes</h2>
<li>Use ''spelling-error'' and ''grammar-error'' with ''::spelling-error'' and ''::grammar-error'' in the UA stylesheet.
<li>Added the {{CSSPseudoElement/element}} attribute to the {{CSSPseudoElement}} interface.
<li>Changed the values of the {{CSSPseudoElement/type}} attribute on the {{CSSPseudoElement}} interface to match the corresponding pseudo-elements.
<li>Changed <code>window.getPseudoElements(elem,type)</code> to <code>Element.pseudo(type)</code>.
</ul>

<h2 class="no-num" id="acknowledgements">
Expand Down

0 comments on commit 5b3c357

Please sign in to comment.