Skip to content
Permalink
Browse files

Meta: remove query/queryAll comments

See #39 for some additional context.
  • Loading branch information...
annevk committed Mar 13, 2018
1 parent 87e028a commit 510fa87968f0db76d7e86e0abb3f32e9ed2ac811
Showing with 0 additions and 70 deletions.
  1. +0 −70 dom.bs
70 dom.bs
@@ -2678,10 +2678,6 @@ Document includes ParentNode;
DocumentFragment includes ParentNode;
Element includes ParentNode;
</pre>
<!--
[Unscopable] Element? query(DOMString relativeSelectors);
[NewObject, Unscopable] Elements queryAll(DOMString relativeSelectors);
-->

<dl class=domintro>
<dt><code><var>collection</var> = <var>node</var> . {{ParentNode/children}}</code>
@@ -2719,18 +2715,6 @@ Element includes ParentNode;
<a>node tree</a> are violated.
<!-- "NotFoundError" is impossible -->

<!--<dt><code><var>node</var> . <a method for=ParentNode lt="query()">query</a>(<var>relativeSelectors</var>)</code>
<dd>
Returns the first <a for="/">element</a> that is a
<a>descendant</a> of <var>node</var> that
matches <var>relativeSelectors</var>.
<dt><code><var>node</var> . <a method for=ParentNode lt="queryAll()">queryAll</a>(<var>relativeSelectors</var>)</code>
<dd>
Returns all <a for="/">element</a>
<a>descendants</a> of <var>node</var> that
match <var>relativeSelectors</var>.-->

<dt><code><var>node</var> . <a method for=ParentNode lt="querySelector()">querySelector</a>(<var>selectors</var>)</code>
<dd>
Returns the first <a for="/">element</a> that is a
@@ -2778,16 +2762,6 @@ must run these steps:
<li><p><a>Append</a> <var>node</var> to <a>context object</a>.
</ol>

<!--The <dfn method for=ParentNode><code>query(<var>relativeSelectors</var>)</code></dfn>
method, when invoked, must return the first result of running
<a>match a relative selectors string</a> <var>relativeSelectors</var> against
a set consisting of <a>context object</a>, and null if the result is an empty list.
The <dfn method for=ParentNode><code>queryAll(<var>relativeSelectors</var>)</code></dfn>
method, when invoked, must return an {{Elements}} array initialized with the result of
running <a>match a relative selectors string</a> <var>relativeSelectors</var> against
a set consisting of <a>context object</a>.-->

<p>The <dfn method for=ParentNode><code>querySelector(<var>selectors</var>)</code></dfn> method,
when invoked, must return the first result of running <a>scope-match a selectors string</a>
<var>selectors</var> against <a>context object</a>, if the result is not an empty list, and null
@@ -2974,50 +2948,6 @@ Text includes Slotable;
the result of <a>find a slot</a> given <a>context object</a> and with the <i>open flag</i> set.</p>


<!--<h4 id=element-collections>Collections: {{Elements}}</h4>
<pre class='idl' data-no-idl>
class <dfn interface>Elements</dfn> extends Array {
Element? <dfn method for=Elements lt="query(DOMString relativeSelectors)">query</dfn>(DOMString relativeSelectors);
Elements <dfn method for=Elements lt="queryAll(DOMString relativeSelectors)">queryAll</dfn>(DOMString relativeSelectors);
};
</pre>
<div class=XXX>
IDL bugs: <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=20020">
Array subclassing</a> and <a href="https://www.w3.org/Bugs/Public/show_bug.cgi?id=23225">class, not interface</a>.
{{Elements}} is a subclass of {{Array}} with two additional methods. It replaces the need
for {{HTMLCollection}} and {{NodeList}}. (If <a>nodes</a> need to be represented rather
than <a for="/">elements</a> a simple {{Array}} can be used.)
</div>
<dl class=domintro>
<dt><code><var>elements</var> . {{Elements/query(relativeSelectors)}}</code>
<dd>
Returns the first <a for="/">element</a> that is a
<a>descendant</a> of <var>elements</var> that
matches <var>relativeSelectors</var>.
<dt><code><var>elements</var> . {{Elements/queryAll(relativeSelectors)}}</code>
<dd>
Returns all <a for="/">element</a>
<a>descendants</a> of <var>elements</var> that
match <var>relativeSelectors</var>.
</dl>
The <dfn method for=Elements><code>query(<var>relativeSelectors</var>)</code></dfn>
method, when invoked, must return the first result of running
<a>match a relative selectors string</a> <var>relativeSelectors</var>
against the <a>context object</a>, and null if the result is an empty list.
The <dfn method for=Elements><code>queryAll(<var>relativeSelectors</var>)</code></dfn>
method, when invoked, must return the result of running
<code class='lang-javascript'>this.constructor</code> with the result of running
<a>match a relative selectors string</a> <var>relativeSelectors</var> against the
<a>context object</a>.-->


<h4 id=old-style-collections>Old-style collections: {{NodeList}} and {{HTMLCollection}}</h4>

A <dfn export id=concept-collection>collection</dfn> is an object that represents a list of

0 comments on commit 510fa87

Please sign in to comment.
You can’t perform that action at this time.