<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[243691] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/243691">243691</a></dd>
<dt>Author</dt> <dd>emilio@crisal.io</dd>
<dt>Date</dt> <dd>2019-04-01 05:50:44 -0700 (Mon, 01 Apr 2019)</dd>
</dl>
<h3>Log Message</h3>
<pre>Be less strict about closing blocks in attribute and functional pseudo-element selectors.
https://bugs.webkit.org/show_bug.cgi?id=142167
Reviewed by Antti Koivisto.
LayoutTests/imported/w3c:
* web-platform-tests/dom/nodes/selectors.js: Add tests for ::slotted
Source/WebCore:
This was also an issue for, e.g., "::slotted(foo", turns out.
This matches Chromium, Firefox, and the spec:
https://drafts.csswg.org/css-syntax/#parse-error:
> Certain points in the parsing algorithm are said to be parse errors. The error
> handling for parse errors is well-defined: user agents must either act as
> described below when encountering such problems, or must abort processing at
> the first error that they encounter for which they do not wish to apply the
> rules described below.
https://drafts.csswg.org/css-syntax/#consume-simple-block:
> <EOF-token>
> This is a parse error. Return the block.
Tests: web-platform-tests/dom/nodes/selectors.js (and probably others)
* css/parser/CSSSelectorParser.cpp:
(WebCore::CSSSelectorParser::consumeAttribute):
(WebCore::CSSSelectorParser::consumePseudo):</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastcssparsingcssattributecaseinsensitivevalue3expectedtxt">trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastcssparsingcssattributecaseinsensitivevalue3html">trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3.html</a></li>
<li><a href="#trunkLayoutTestsfastselectorsinvalidfunctionalpseudoclassexpectedtxt">trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastselectorsinvalidfunctionalpseudoclasshtml">trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestscssselectorsmissingrighttokenexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/css/selectors/missing-right-token-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesElementmatchesexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-matches-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesElementwebkitMatchesSelectorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-webkitMatchesSelector-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesParentNodequerySelectorAllexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesParentNodequerySelectorAllxhtexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesselectorsjs">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/selectors.js</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorecssparserCSSSelectorParsercpp">trunk/Source/WebCore/css/parser/CSSSelectorParser.cpp</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsfastcssparsingcssattributecaseinsensitivevalue3expectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3-expected.txt (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3-expected.txt 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3-expected.txt 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -788,102 +788,6 @@
</span><span class="cx"> PASS document.getElementById('style-container').sheet.cssRules.length is 0
</span><span class="cx"> PASS document.getElementById('style-container').sheet.cssRules.length is 0
</span><span class="cx"> PASS document.getElementById('style-container').sheet.cssRules.length is 0
</span><del>-PASS document.querySelector("[foo=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo~=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo~=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo~=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo~=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo~=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo~=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo~=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo~=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo|=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo|=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo|=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo|=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo|=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo|=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo|=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo|=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo^=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo^=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo^=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo^=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo^=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo^=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo^=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo^=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo$=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo$=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo$=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo$=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo$=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo$=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo$=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo$=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo*=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo*=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo*=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo*=bar i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.querySelector("[foo*=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[|foo*=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[*|foo*=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.querySelector("[WebKit|foo*=\"bar\" i") threw exception SyntaxError: The string did not match the expected pattern..
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
-PASS document.getElementById('style-container').sheet.cssRules.length is 0
</del><span class="cx"> PASS successfullyParsed is true
</span><span class="cx">
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfastcssparsingcssattributecaseinsensitivevalue3html"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3.html (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3.html 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/fast/css/parsing-css-attribute-case-insensitive-value-3.html 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -143,20 +143,6 @@
</span><span class="cx"> '[foo$="bar" l]',
</span><span class="cx"> '[foo*=bar l]',
</span><span class="cx"> '[foo*="bar" l]',
</span><del>-
- // Missing the closing ']'.
- '[foo=bar i',
- '[foo="bar" i',
- '[foo~=bar i',
- '[foo~="bar" i',
- '[foo|=bar i',
- '[foo|="bar" i',
- '[foo^=bar i',
- '[foo^="bar" i',
- '[foo$=bar i',
- '[foo$="bar" i',
- '[foo*=bar i',
- '[foo*="bar" i',
</del><span class="cx"> ];
</span><span class="cx">
</span><span class="cx"> debug("Invalid selectors.");
</span></span></pre></div>
<a id="trunkLayoutTestsfastselectorsinvalidfunctionalpseudoclassexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class-expected.txt (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class-expected.txt 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class-expected.txt 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -15,7 +15,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":-webkit-any\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":-webkit-any\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":-webkit-any\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":-webkit-any\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":-webkit-any\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":-webkit-any\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":-webkit-any\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -56,7 +55,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":dir\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":dir\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":dir\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -69,7 +67,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":dir\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":dir\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":dir\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":dir\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":dir\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":dir\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":dir\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -110,7 +107,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":lang\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":lang\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":lang\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -123,7 +119,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":lang\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":lang\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":lang\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":lang\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":lang\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":lang\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":lang\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -164,7 +159,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":not\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":not\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":not\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -177,7 +171,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":not\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":not\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":not\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":not\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":not\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":not\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":not\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -218,7 +211,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":nth-child\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":nth-child\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-child\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -231,7 +223,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":nth-child\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-child\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-child\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":nth-child\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":nth-child\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-child\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-child\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -272,7 +263,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":nth-last-child\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -285,7 +275,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":nth-last-child\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-child\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -326,7 +315,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -339,7 +327,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":nth-last-of-type\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-last-of-type\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -380,7 +367,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":nth-of-type\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -393,7 +379,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":nth-of-type\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":nth-of-type\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -434,7 +419,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":matches\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":matches\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":matches\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -447,7 +431,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":matches\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":matches\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":matches\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":matches\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":matches\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":matches\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":matches\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -488,7 +471,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS document.querySelectorAll(":role\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="cx"> PASS document.querySelectorAll(":role\\").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":role\\\").length threw exception SyntaxError: Unexpected EOF.
</span><span class="lines">@@ -501,7 +483,6 @@
</span><span class="cx"> PASS document.querySelectorAll(":role\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":role\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":role\\\\ .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><del>-PASS document.querySelectorAll(":role\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</del><span class="cx"> PASS document.querySelectorAll(":role\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":role\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="cx"> PASS document.querySelectorAll(":role\\\\( .foo").length threw exception SyntaxError: The string did not match the expected pattern..
</span><span class="lines">@@ -542,7 +523,6 @@
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><span class="cx"> PASS document.styleSheets[1].cssRules.length is 0
</span><del>-PASS document.styleSheets[1].cssRules.length is 0
</del><span class="cx"> PASS successfullyParsed is true
</span><span class="cx">
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfastselectorsinvalidfunctionalpseudoclasshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class.html (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class.html 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/fast/selectors/invalid-functional-pseudo-class.html 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -21,7 +21,6 @@
</span><span class="cx"> ':' + functonalPseudoClassName + '\\\\ .foo',
</span><span class="cx"> ':' + functonalPseudoClassName + '\\\\\\ .foo',
</span><span class="cx"> ':' + functonalPseudoClassName + '\\\\\\\\ .foo',
</span><del>- ':' + functonalPseudoClassName + '\\( .foo',
</del><span class="cx"> ':' + functonalPseudoClassName + '\\\\( .foo',
</span><span class="cx"> ':' + functonalPseudoClassName + '\\\\\\( .foo',
</span><span class="cx"> ':' + functonalPseudoClassName + '\\\\\\\\( .foo',
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2019-04-01 Emilio Cobos Álvarez <emilio@crisal.io>
+
+ Be less strict about closing blocks in attribute and functional pseudo-element selectors.
+ https://bugs.webkit.org/show_bug.cgi?id=142167
+
+ Reviewed by Antti Koivisto.
+
+ * web-platform-tests/dom/nodes/selectors.js: Add tests for ::slotted
+
</ins><span class="cx"> 2019-03-29 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><span class="cx"> Make someWindow.frames, .self, .window always return someWindow
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestscssselectorsmissingrighttokenexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/css/selectors/missing-right-token-expected.txt (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/css/selectors/missing-right-token-expected.txt 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/css/selectors/missing-right-token-expected.txt 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -1,3 +1,3 @@
</span><span class="cx">
</span><del>-FAIL attribute selectors with missing right tokens succeed The string did not match the expected pattern.
</del><ins>+PASS attribute selectors with missing right tokens succeed
</ins><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesElementmatchesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-matches-expected.txt (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-matches-expected.txt 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-matches-expected.txt 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx"> PASS In-document Element.matches: Attribute presence selector, matching option with selected attribute (with no refNodes): #attr-presence-select2 option[selected]
</span><span class="cx"> PASS In-document Element.matches: Attribute presence selector, matching multiple options with selected attributes (with no refNodes): #attr-presence-select3 option[selected]
</span><span class="cx"> PASS In-document Element.matches: Attribute value selector, matching align attribute with value (with no refNodes): #attr-value [align="center"]
</span><del>-FAIL In-document Element.matches: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS In-document Element.matches: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center"
</ins><span class="cx"> PASS In-document Element.matches: Attribute value selector, matching align attribute with empty value (with no refNodes): #attr-value [align=""]
</span><span class="cx"> PASS In-document Element.matches: Attribute value selector, matching custom data-* attribute with unicode escaped value (with no refNodes): [data-attr-value="\e9"]
</span><span class="cx"> PASS In-document Element.matches: Attribute value selector, matching custom data-* attribute with escaped character (with no refNodes): [data-attr-value_foo="\e9"]
</span><span class="lines">@@ -256,7 +256,7 @@
</span><span class="cx"> PASS Detached Element.matches: Attribute presence selector, matching option with selected attribute (with no refNodes): #attr-presence-select2 option[selected]
</span><span class="cx"> PASS Detached Element.matches: Attribute presence selector, matching multiple options with selected attributes (with no refNodes): #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Detached Element.matches: Attribute value selector, matching align attribute with value (with no refNodes): #attr-value [align="center"]
</span><del>-FAIL Detached Element.matches: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Detached Element.matches: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center"
</ins><span class="cx"> PASS Detached Element.matches: Attribute value selector, matching align attribute with empty value (with no refNodes): #attr-value [align=""]
</span><span class="cx"> PASS Detached Element.matches: Attribute value selector, matching custom data-* attribute with unicode escaped value (with no refNodes): [data-attr-value="\e9"]
</span><span class="cx"> PASS Detached Element.matches: Attribute value selector, matching custom data-* attribute with escaped character (with no refNodes): [data-attr-value_foo="\e9"]
</span><span class="lines">@@ -414,7 +414,7 @@
</span><span class="cx"> PASS Fragment Element.matches: Attribute presence selector, matching option with selected attribute (with no refNodes): #attr-presence-select2 option[selected]
</span><span class="cx"> PASS Fragment Element.matches: Attribute presence selector, matching multiple options with selected attributes (with no refNodes): #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Fragment Element.matches: Attribute value selector, matching align attribute with value (with no refNodes): #attr-value [align="center"]
</span><del>-FAIL Fragment Element.matches: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Fragment Element.matches: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center"
</ins><span class="cx"> PASS Fragment Element.matches: Attribute value selector, matching align attribute with empty value (with no refNodes): #attr-value [align=""]
</span><span class="cx"> PASS Fragment Element.matches: Attribute value selector, matching custom data-* attribute with unicode escaped value (with no refNodes): [data-attr-value="\e9"]
</span><span class="cx"> PASS Fragment Element.matches: Attribute value selector, matching custom data-* attribute with escaped character (with no refNodes): [data-attr-value_foo="\e9"]
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesElementwebkitMatchesSelectorexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-webkitMatchesSelector-expected.txt (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-webkitMatchesSelector-expected.txt 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-webkitMatchesSelector-expected.txt 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -93,7 +93,7 @@
</span><span class="cx"> PASS In-document Element.webkitMatchesSelector: Attribute presence selector, matching option with selected attribute (with no refNodes): #attr-presence-select2 option[selected]
</span><span class="cx"> PASS In-document Element.webkitMatchesSelector: Attribute presence selector, matching multiple options with selected attributes (with no refNodes): #attr-presence-select3 option[selected]
</span><span class="cx"> PASS In-document Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value (with no refNodes): #attr-value [align="center"]
</span><del>-FAIL In-document Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS In-document Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center"
</ins><span class="cx"> PASS In-document Element.webkitMatchesSelector: Attribute value selector, matching align attribute with empty value (with no refNodes): #attr-value [align=""]
</span><span class="cx"> PASS In-document Element.webkitMatchesSelector: Attribute value selector, matching custom data-* attribute with unicode escaped value (with no refNodes): [data-attr-value="\e9"]
</span><span class="cx"> PASS In-document Element.webkitMatchesSelector: Attribute value selector, matching custom data-* attribute with escaped character (with no refNodes): [data-attr-value_foo="\e9"]
</span><span class="lines">@@ -256,7 +256,7 @@
</span><span class="cx"> PASS Detached Element.webkitMatchesSelector: Attribute presence selector, matching option with selected attribute (with no refNodes): #attr-presence-select2 option[selected]
</span><span class="cx"> PASS Detached Element.webkitMatchesSelector: Attribute presence selector, matching multiple options with selected attributes (with no refNodes): #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Detached Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value (with no refNodes): #attr-value [align="center"]
</span><del>-FAIL Detached Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Detached Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center"
</ins><span class="cx"> PASS Detached Element.webkitMatchesSelector: Attribute value selector, matching align attribute with empty value (with no refNodes): #attr-value [align=""]
</span><span class="cx"> PASS Detached Element.webkitMatchesSelector: Attribute value selector, matching custom data-* attribute with unicode escaped value (with no refNodes): [data-attr-value="\e9"]
</span><span class="cx"> PASS Detached Element.webkitMatchesSelector: Attribute value selector, matching custom data-* attribute with escaped character (with no refNodes): [data-attr-value_foo="\e9"]
</span><span class="lines">@@ -414,7 +414,7 @@
</span><span class="cx"> PASS Fragment Element.webkitMatchesSelector: Attribute presence selector, matching option with selected attribute (with no refNodes): #attr-presence-select2 option[selected]
</span><span class="cx"> PASS Fragment Element.webkitMatchesSelector: Attribute presence selector, matching multiple options with selected attributes (with no refNodes): #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Fragment Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value (with no refNodes): #attr-value [align="center"]
</span><del>-FAIL Fragment Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Fragment Element.webkitMatchesSelector: Attribute value selector, matching align attribute with value, unclosed bracket (with no refNodes): #attr-value [align="center"
</ins><span class="cx"> PASS Fragment Element.webkitMatchesSelector: Attribute value selector, matching align attribute with empty value (with no refNodes): #attr-value [align=""]
</span><span class="cx"> PASS Fragment Element.webkitMatchesSelector: Attribute value selector, matching custom data-* attribute with unicode escaped value (with no refNodes): [data-attr-value="\e9"]
</span><span class="cx"> PASS Fragment Element.webkitMatchesSelector: Attribute value selector, matching custom data-* attribute with escaped character (with no refNodes): [data-attr-value_foo="\e9"]
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesParentNodequerySelectorAllexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-expected.txt 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -345,8 +345,8 @@
</span><span class="cx"> PASS Document.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Document.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS Document.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL Document.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL Document.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Document.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS Document.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS Document.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Document.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Document.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -733,6 +733,10 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS Document.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS Document.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS Document.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS Document.querySelector: Slotted selector: ::slotted(foo)
+PASS Document.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS Document.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx"> PASS Detached Element.querySelectorAll: Type selector, matching html element: html
</span><span class="cx"> PASS Detached Element.querySelector: Type selector, matching html element: html
</span><span class="cx"> PASS Detached Element.querySelectorAll: Type selector, matching body element: body
</span><span class="lines">@@ -765,8 +769,8 @@
</span><span class="cx"> PASS Detached Element.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Detached Element.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS Detached Element.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL Detached Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL Detached Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Detached Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS Detached Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS Detached Element.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Detached Element.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Detached Element.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -1153,6 +1157,10 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS Detached Element.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS Detached Element.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS Detached Element.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS Detached Element.querySelector: Slotted selector: ::slotted(foo)
+PASS Detached Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS Detached Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx"> PASS Fragment.querySelectorAll: Type selector, matching html element: html
</span><span class="cx"> PASS Fragment.querySelector: Type selector, matching html element: html
</span><span class="cx"> PASS Fragment.querySelectorAll: Type selector, matching body element: body
</span><span class="lines">@@ -1185,8 +1193,8 @@
</span><span class="cx"> PASS Fragment.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Fragment.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS Fragment.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL Fragment.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL Fragment.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Fragment.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS Fragment.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS Fragment.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Fragment.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Fragment.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -1573,6 +1581,10 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS Fragment.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS Fragment.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS Fragment.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS Fragment.querySelector: Slotted selector: ::slotted(foo)
+PASS Fragment.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS Fragment.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx"> PASS In-document Element.querySelectorAll: Type selector, matching html element: html
</span><span class="cx"> PASS In-document Element.querySelector: Type selector, matching html element: html
</span><span class="cx"> PASS In-document Element.querySelectorAll: Type selector, matching body element: body
</span><span class="lines">@@ -1605,8 +1617,8 @@
</span><span class="cx"> PASS In-document Element.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS In-document Element.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS In-document Element.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL In-document Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL In-document Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS In-document Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS In-document Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS In-document Element.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS In-document Element.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS In-document Element.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -1995,4 +2007,8 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS In-document Element.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS In-document Element.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS In-document Element.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS In-document Element.querySelector: Slotted selector: ::slotted(foo)
+PASS In-document Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS In-document Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesParentNodequerySelectorAllxhtexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/ParentNode-querySelector-All-xht-expected.txt 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -345,8 +345,8 @@
</span><span class="cx"> PASS Document.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Document.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS Document.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL Document.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL Document.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Document.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS Document.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS Document.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Document.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Document.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -733,6 +733,10 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS Document.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS Document.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS Document.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS Document.querySelector: Slotted selector: ::slotted(foo)
+PASS Document.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS Document.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx"> PASS Detached Element.querySelectorAll: Type selector, matching html element: html
</span><span class="cx"> PASS Detached Element.querySelector: Type selector, matching html element: html
</span><span class="cx"> PASS Detached Element.querySelectorAll: Type selector, matching body element: body
</span><span class="lines">@@ -765,8 +769,8 @@
</span><span class="cx"> PASS Detached Element.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Detached Element.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS Detached Element.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL Detached Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL Detached Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Detached Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS Detached Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS Detached Element.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Detached Element.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Detached Element.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -1153,6 +1157,10 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS Detached Element.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS Detached Element.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS Detached Element.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS Detached Element.querySelector: Slotted selector: ::slotted(foo)
+PASS Detached Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS Detached Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx"> PASS Fragment.querySelectorAll: Type selector, matching html element: html
</span><span class="cx"> PASS Fragment.querySelector: Type selector, matching html element: html
</span><span class="cx"> PASS Fragment.querySelectorAll: Type selector, matching body element: body
</span><span class="lines">@@ -1185,8 +1193,8 @@
</span><span class="cx"> PASS Fragment.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS Fragment.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS Fragment.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL Fragment.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL Fragment.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS Fragment.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS Fragment.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS Fragment.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Fragment.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS Fragment.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -1573,6 +1581,10 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS Fragment.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS Fragment.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS Fragment.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS Fragment.querySelector: Slotted selector: ::slotted(foo)
+PASS Fragment.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS Fragment.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx"> PASS In-document Element.querySelectorAll: Type selector, matching html element: html
</span><span class="cx"> PASS In-document Element.querySelector: Type selector, matching html element: html
</span><span class="cx"> PASS In-document Element.querySelectorAll: Type selector, matching body element: body
</span><span class="lines">@@ -1605,8 +1617,8 @@
</span><span class="cx"> PASS In-document Element.querySelector: Attribute presence selector, matching multiple options with selected attributes: #attr-presence-select3 option[selected]
</span><span class="cx"> PASS In-document Element.querySelectorAll: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><span class="cx"> PASS In-document Element.querySelector: Attribute value selector, matching align attribute with value: #attr-value [align="center"]
</span><del>-FAIL In-document Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
-FAIL In-document Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center" The string did not match the expected pattern.
</del><ins>+PASS In-document Element.querySelectorAll: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
+PASS In-document Element.querySelector: Attribute value selector, matching align attribute with value, unclosed bracket: #attr-value [align="center"
</ins><span class="cx"> PASS In-document Element.querySelectorAll: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS In-document Element.querySelector: Attribute value selector, matching align attribute with empty value: #attr-value [align=""]
</span><span class="cx"> PASS In-document Element.querySelectorAll: Attribute value selector, not matching align attribute with partial value: #attr-value [align="c"]
</span><span class="lines">@@ -1995,4 +2007,8 @@
</span><span class="cx"> ,#group strong
</span><span class="cx"> PASS In-document Element.querySelectorAll: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><span class="cx"> PASS In-document Element.querySelector: Syntax, group of selectors separator, no whitespace: #group em,#group strong
</span><ins>+PASS In-document Element.querySelectorAll: Slotted selector: ::slotted(foo)
+PASS In-document Element.querySelector: Slotted selector: ::slotted(foo)
+PASS In-document Element.querySelectorAll: Slotted selector (no matching closing paren): ::slotted(foo
+PASS In-document Element.querySelector: Slotted selector (no matching closing paren): ::slotted(foo
</ins><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesselectorsjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/selectors.js (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/selectors.js 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/selectors.js 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -371,6 +371,10 @@
</span><span class="cx"> {name: "Syntax, group of selectors separator, whitespace after", selector: "#group em,\t\r\n#group strong", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_QSA | TEST_MATCH},
</span><span class="cx"> {name: "Syntax, group of selectors separator, whitespace before", selector: "#group em\t\r\n,#group strong", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_QSA | TEST_MATCH},
</span><span class="cx"> {name: "Syntax, group of selectors separator, no whitespace", selector: "#group em,#group strong", expect: ["group-em1", "group-strong1"], level: 1, testType: TEST_QSA | TEST_MATCH},
</span><ins>+
+ // ::slotted (shouldn't match anything, but is a valid selector)
+ {name: "Slotted selector", selector: "::slotted(foo)", expect: [], level: 3, testType: TEST_QSA},
+ {name: "Slotted selector (no matching closing paren)", selector: "::slotted(foo", expect: [], level: 3, testType: TEST_QSA},
</ins><span class="cx"> ];
</span><span class="cx">
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/Source/WebCore/ChangeLog 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2019-04-01 Emilio Cobos Álvarez <emilio@crisal.io>
+
+ Be less strict about closing blocks in attribute and functional pseudo-element selectors.
+ https://bugs.webkit.org/show_bug.cgi?id=142167
+
+ Reviewed by Antti Koivisto.
+
+ This was also an issue for, e.g., "::slotted(foo", turns out.
+
+ This matches Chromium, Firefox, and the spec:
+
+ https://drafts.csswg.org/css-syntax/#parse-error:
+
+ > Certain points in the parsing algorithm are said to be parse errors. The error
+ > handling for parse errors is well-defined: user agents must either act as
+ > described below when encountering such problems, or must abort processing at
+ > the first error that they encounter for which they do not wish to apply the
+ > rules described below.
+
+ https://drafts.csswg.org/css-syntax/#consume-simple-block:
+
+ > <EOF-token>
+ > This is a parse error. Return the block.
+
+ Tests: web-platform-tests/dom/nodes/selectors.js (and probably others)
+
+ * css/parser/CSSSelectorParser.cpp:
+ (WebCore::CSSSelectorParser::consumeAttribute):
+ (WebCore::CSSSelectorParser::consumePseudo):
+
</ins><span class="cx"> 2019-04-01 Pablo Saavedra <psaavedra@igalia.com>
</span><span class="cx">
</span><span class="cx"> Build failure after r243644 in GTK Linux 64-bit stable builds
</span></span></pre></div>
<a id="trunkSourceWebCorecssparserCSSSelectorParsercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/css/parser/CSSSelectorParser.cpp (243690 => 243691)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/css/parser/CSSSelectorParser.cpp 2019-04-01 09:47:08 UTC (rev 243690)
+++ trunk/Source/WebCore/css/parser/CSSSelectorParser.cpp 2019-04-01 12:50:44 UTC (rev 243691)
</span><span class="lines">@@ -398,9 +398,6 @@
</span><span class="cx"> {
</span><span class="cx"> ASSERT(range.peek().type() == LeftBracketToken);
</span><span class="cx"> CSSParserTokenRange block = range.consumeBlock();
</span><del>- if (block.end() == range.end())
- return nullptr; // No ] was found. Be strict about this.
-
</del><span class="cx"> block.consumeWhitespace();
</span><span class="cx">
</span><span class="cx"> AtomicString namespacePrefix;
</span><span class="lines">@@ -520,8 +517,6 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> CSSParserTokenRange block = range.consumeBlock();
</span><del>- if (block.end() == range.end())
- return nullptr; // No ) was found. Be strict about this.
</del><span class="cx"> block.consumeWhitespace();
</span><span class="cx"> if (token.type() != FunctionToken)
</span><span class="cx"> return nullptr;
</span></span></pre>
</div>
</div>
</body>
</html>