Skip to content

Commit 10b6cf1

Browse files
committed
Comment out query/queryAll/Elements for now
The multiple notes pointing out the issues that needed to be resolved before they can be implemented were not sufficient to avoid confusing folks.
1 parent ce331fd commit 10b6cf1

File tree

2 files changed

+34
-89
lines changed

2 files changed

+34
-89
lines changed

dom.bs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,15 +2090,17 @@ interface ParentNode {
20902090
[Unscopeable] void prepend((Node or DOMString)... nodes);
20912091
[Unscopeable] void append((Node or DOMString)... nodes);
20922092

2093-
[Unscopeable] Element? query(DOMString relativeSelectors);
2094-
[NewObject, Unscopeable] Elements queryAll(DOMString relativeSelectors);
20952093
Element? querySelector(DOMString selectors);
20962094
[NewObject] NodeList querySelectorAll(DOMString selectors);
20972095
};
20982096
Document implements ParentNode;
20992097
DocumentFragment implements ParentNode;
21002098
Element implements ParentNode;
21012099
</pre>
2100+
<!--
2101+
[Unscopeable] Element? query(DOMString relativeSelectors);
2102+
[NewObject, Unscopeable] Elements queryAll(DOMString relativeSelectors);
2103+
-->
21022104

21032105
<dl class=domintro>
21042106
<dt><code><var>collection</var> = <var>node</var> . {{ParentNode/children}}</code>
@@ -2136,7 +2138,7 @@ Element implements ParentNode;
21362138
<a>node tree</a> are violated.
21372139
<!-- "NotFoundError" is impossible -->
21382140

2139-
<dt><code><var>node</var> . <a method for=ParentNode lt="query()">query</a>(<var>relativeSelectors</var>)</code>
2141+
<!--<dt><code><var>node</var> . <a method for=ParentNode lt="query()">query</a>(<var>relativeSelectors</var>)</code>
21402142
<dd>
21412143
Returns the first <a for="/">element</a> that is a
21422144
<a>descendant</a> of <var>node</var> that
@@ -2146,7 +2148,7 @@ Element implements ParentNode;
21462148
<dd>
21472149
Returns all <a for="/">element</a>
21482150
<a>descendants</a> of <var>node</var> that
2149-
match <var>relativeSelectors</var>.
2151+
match <var>relativeSelectors</var>.-->
21502152

21512153
<dt><code><var>node</var> . <a method for=ParentNode lt="querySelector()">querySelector</a>(<var>selectors</var>)</code>
21522154
<dd>
@@ -2204,15 +2206,15 @@ method must run these steps:
22042206
<var>node</var> to the <a>context object</a>.
22052207
</ol>
22062208

2207-
The <dfn method for=ParentNode><code>query(<var>relativeSelectors</var>)</code></dfn>
2209+
<!--The <dfn method for=ParentNode><code>query(<var>relativeSelectors</var>)</code></dfn>
22082210
method, when invoked, must return the first result of running
22092211
<a>match a relative selectors string</a> <var>relativeSelectors</var> against
22102212
a set consisting of <a>context object</a>, and null if the result is an empty list.
22112213

22122214
The <dfn method for=ParentNode><code>queryAll(<var>relativeSelectors</var>)</code></dfn>
22132215
method, when invoked, must return an {{Elements}} array initialized with the result of
22142216
running <a>match a relative selectors string</a> <var>relativeSelectors</var> against
2215-
a set consisting of <a>context object</a>.
2217+
a set consisting of <a>context object</a>.-->
22162218

22172219
The <dfn method for=ParentNode><code>querySelector(<var>selectors</var>)</code></dfn>
22182220
method, when invoked, must return the first result of running
@@ -2407,7 +2409,7 @@ Text implements Slotable;
24072409
the result of <a>find a slot</a> given <a>context object</a> and with the <i>open flag</i> set.</p>
24082410

24092411

2410-
<h4 id=element-collections>Collections: {{Elements}}</h4>
2412+
<!--<h4 id=element-collections>Collections: {{Elements}}</h4>
24112413

24122414
<pre class='idl' data-no-idl>
24132415
class <dfn interface>Elements</dfn> extends Array {
@@ -2448,7 +2450,7 @@ The <dfn method for=Elements><code>queryAll(<var>relativeSelectors</var>)</code>
24482450
method, when invoked, must return the result of running
24492451
<code class='lang-javascript'>this.constructor</code> with the result of running
24502452
<a>match a relative selectors string</a> <var>relativeSelectors</var> against the
2451-
<a>context object</a>.
2453+
<a>context object</a>.-->
24522454

24532455

24542456
<h4 id=old-style-collections>Old-style collections: {{NodeList}} and {{HTMLCollection}}</h4>
@@ -2536,9 +2538,8 @@ interface HTMLCollection {
25362538

25372539
<p>An {{HTMLCollection}} object is a <a>collection</a> of <a for="/">elements</a>.
25382540

2539-
<p class="note no-backref">{{Elements}} is the better solution for representing a
2540-
<a>collection</a> of <a for="/">elements</a>. {{HTMLCollection}} is an historical artifact we
2541-
cannot rid the web of.
2541+
<p class="note no-backref">{{HTMLCollection}} is an historical artifact we cannot rid the web of.
2542+
Please do not use it in new APIs.
25422543

25432544
<dl class=domintro>
25442545
<dt><var>collection</var> . {{HTMLCollection/length}}

0 commit comments

Comments
 (0)