Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct step in matches() #923

Merged
merged 1 commit into from
Jan 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -6796,23 +6796,20 @@ method, when invoked, must run these steps:
<li>Return null.
</ol>

The <dfn method for=Element><code>matches(<var>selectors</var>)</code></dfn> and
<dfn method for=Element><code>webkitMatchesSelector(<var>selectors</var>)</code></dfn> methods, when
invoked, must run these steps:
<p>The <dfn method for=Element><code>matches(<var>selectors</var>)</code></dfn> and
<dfn method for=Element><code>webkitMatchesSelector(<var>selectors</var>)</code></dfn> method steps
are:

<ol>
<li>Let <var>s</var> be the result of
<a>parse a selector</a> from <var>selectors</var>.
<li><p>Let <var>s</var> be the result of <a>parse a selector</a> from <var>selectors</var>.
[[!SELECTORS4]]

<li>If <var>s</var> is failure, <a>throw</a> a
"{{SyntaxError!!exception}}" {{DOMException}}.
<li><p>If <var>s</var> is failure, then <a>throw</a> a "{{SyntaxError!!exception}}"
{{DOMException}}.

<li>Return true if the result of
<a>match a selector against an element</a>, using
<var>s</var>, <var>element</var>, and
<a>:scope element</a> <a>this</a>,
returns success, and false otherwise. [[!SELECTORS4]]
<li><p>If the result of <a>match a selector against an element</a>, using <var>s</var>,
<a>this</a>, and <a>:scope element</a> <a>this</a>, returns success, then return true; otherwise,
return false. [[!SELECTORS4]]
</ol>

<hr>
Expand Down Expand Up @@ -10000,6 +9997,7 @@ Chris Dumez,
Chris Paris,
Chris Rebert,
Cyrille Tuzi,
Dan Burzo,
Daniel Glazman,
Darin Fisher,
David Bruant,
Expand Down