@@ -891,57 +891,25 @@ Interface CSSPseudoElement</h3>
891891 must be implemented by all instances of <code> CSSPseudoElement</code>
892892 as a conformance requirement of this module.
893893
894- <h3 id="CSSPseudoElementList-interface">
895- Interface CSSPseudoElementList</h3>
896-
897- The <code> CSSPseudoElementList</code> represents an ordered collection
898- of <code> CSSPseudoElement</code> instances.
899-
900- <pre class="idl">
901- [Exposed=Window]
902- interface CSSPseudoElementList {
903- readonly attribute unsigned long <a href="#dom-csspseudochildlist-length">length</a> ;
904- CSSPseudoElement <a href="#dom-csspseudochildlist-item">item</a> (unsigned long index);
905- CSSPseudoElement <a href="#dom-csspseudochildlist-getbytype">getByType</a> (CSSOMString type);
906- // replies null if no pseudo-element exists for
907- // the requested type
908- };
909- </pre>
910-
911- The <dfn id="dom-csspseudochildlist-length">length</dfn> attribute
912- represents the number of <code> CSSPseudoElement</code> in the
913- collection or zero if it is empty.
914- The method <dfn id="dom-csspseudochildlist-item">item()</dfn>
915- is used to retrieve a <code> CSSPseudo</code><code> Element</code> by index.
916- It takes one parameter being the requested index into the collection.
917- Its return value is the <code> CSSPseudo</code><code> Element</code>
918- at the requested index in the collection
919- or null if that is not a valid index.
920-
921- The method <dfn id="dom-csspseudochildlist-getbytype">getByType()</dfn>
922- is used to retrieve a <code> CSSPseudo</code><code> Element</code>
923- by its type.
924- Its return value is the <code> CSSPseudo</code><code> Element</code>
925- in the collection that matches the type
926- or null if there is no <code> CSSPseudo</code><code> Element</code>
927- in the collection for that type.
928-
929894<h3 id="window-interface">
930895Addition to the <code>Element</code> interface</h3>
931896
932897 A new method is added to the <code> Element</code> interface to retrieve
933898 pseudo-elements created by a given element for a given type:
934899 <pre class="idl">
935900 partial interface Element {
936- CSSPseudoElementList <a href="#dom-window-getpseudochildren ">pseudo</a> (CSSOMString type);
901+ CSSPseudoElement? <a href="#dom-element-pseudo ">pseudo</a> (CSSOMString type);
937902 };
938903 </pre>
939904
940905 The <dfn id="dom-element-pseudo"><code>pseudo()</code></dfn> method
941- is used to retrieve all <code> CSSPseudoElement</code> instances
942- created by the element <code> elt</code> for the type <code> type</code> .
943- Its return value is a <code> CSSPseudoElementList</code> ,
944- potentially empty if no pseudo-element exists for the given element and the given type.
906+ is used to retrieve the <code> CSSPseudoElement</code> instance
907+ created by the element of the type matching <code> type</code> .
908+ Its return value is a <code> CSSPseudoElement</code> ,
909+ potentially null if no such pseudo-element exists.
910+
911+ Pseudo-elements of unsupported types are considered to simply not exist;
912+ unrecognized <code> type</code> values are not an error.
945913
946914<h2 id="css2-compat">
947915Compatibilitiy Syntax</h2>
0 commit comments