Skip to content

Commit 5b3c357

Browse files
committed
[css-pseudo-4] Switch window.getPseudoElements(elem,type) to Element.pseudo(type). w3c#3541
1 parent 0abf9c8 commit 5b3c357

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

css-pseudo-4/Overview.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -927,18 +927,17 @@ Interface CSSPseudoElementList</h3>
927927
in the collection for that type.
928928

929929
<h3 id="window-interface">
930-
Addition to the <code>window</code> interface</h3>
930+
Addition to the <code>Element</code> interface</h3>
931931

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

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

972972
<h2 class="no-num" id="acknowledgements">

0 commit comments

Comments
 (0)