<!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>[167588] 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/167588">167588</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2014-04-21 00:25:05 -0700 (Mon, 21 Apr 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, rolling out <a href="http://trac.webkit.org/projects/webkit/changeset/167584">r167584</a>.
https://bugs.webkit.org/show_bug.cgi?id=131929

Broke Objective-C bindings test (Requested by ap on #webkit).

Reverted changeset:

&quot;Add Element.matches, the standard name for
webkitMatchesSelector&quot;
https://bugs.webkit.org/show_bug.cgi?id=131922
http://trac.webkit.org/changeset/167584</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIattrnamecaseinsensitiveexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIattrnamecaseinsensitivehtml">trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive.html</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIattrnamecasesensitiveexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIattrnamecasesensitivexhtml">trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive.xhtml</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseIDalmoststrictexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseIDalmoststricthtml">trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict.html</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseIDexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/caseID-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseIDstrictexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseIDstricthtml">trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict.html</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseIDhtml">trunk/LayoutTests/fast/dom/SelectorAPI/caseID.html</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseTagexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/caseTag-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseTaghtml">trunk/LayoutTests/fast/dom/SelectorAPI/caseTag.html</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseTagXexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIcaseTagXxhtml">trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX.xhtml</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIdetachedelementexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/detached-element-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPInotsupportednamespaceinselectorexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPInotsupportednamespaceinselectorhtml">trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector.html</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIscripttestsdetachedelementjs">trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIscripttestsundefinednullstringifyjs">trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/undefined-null-stringify.js</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIscripttestsviewlessdocumentjs">trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIundefinednullstringifyexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/undefined-null-stringify-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomSelectorAPIviewlessdocumentexpectedtxt">trunk/LayoutTests/fast/dom/SelectorAPI/viewless-document-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformsradioradiolivevalidationstyleexpectedtxt">trunk/LayoutTests/fast/forms/radio/radio-live-validation-style-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastformsradioradiolivevalidationstylehtml">trunk/LayoutTests/fast/forms/radio/radio-live-validation-style.html</a></li>
<li><a href="#trunkLayoutTestsfastharnessresultshtml">trunk/LayoutTests/fast/harness/results.html</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorObjCpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm</a></li>
<li><a href="#trunkSourceWebCoredomElementcpp">trunk/Source/WebCore/dom/Element.cpp</a></li>
<li><a href="#trunkSourceWebCoredomElementh">trunk/Source/WebCore/dom/Element.h</a></li>
<li><a href="#trunkSourceWebCoredomElementidl">trunk/Source/WebCore/dom/Element.idl</a></li>
<li><a href="#trunkSourceWebCoreinspectorInspectorCSSAgentcpp">trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/ChangeLog        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-04-21  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r167584.
+        https://bugs.webkit.org/show_bug.cgi?id=131929
+
+        Broke Objective-C bindings test (Requested by ap on #webkit).
+
+        Reverted changeset:
+
+        &quot;Add Element.matches, the standard name for
+        webkitMatchesSelector&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=131922
+        http://trac.webkit.org/changeset/167584
+
</ins><span class="cx"> 2014-04-20  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Compile the :root pseudo class and fix a related issue with :nth-child()
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIattrnamecaseinsensitiveexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1,34 +1,24 @@
</span><span class="cx"> PASS document.querySelector('div[baR]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[baR]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[baR]') is true
</span><span class="cx"> PASS document.querySelector('div[bar]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[bar]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[bar]') is true
</span><span class="cx"> PASS document.querySelector('div[BAR]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[BAR]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[BAR]') is true
</span><span class="cx"> PASS document.querySelector('div[bAR]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[bAR]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[bAR]') is true
</span><span class="cx"> PASS document.querySelector('div[baR=&quot;10&quot;]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[baR=&quot;10&quot;]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[baR=&quot;10&quot;]') is true
</span><span class="cx"> PASS document.querySelector('div[bar=&quot;10&quot;]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[bar=&quot;10&quot;]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[bar=&quot;10&quot;]') is true
</span><span class="cx"> PASS document.querySelector('div[BAR=&quot;10&quot;]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[BAR=&quot;10&quot;]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[BAR=&quot;10&quot;]') is true
</span><span class="cx"> PASS document.querySelector('div[bAR=&quot;10&quot;]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[bAR=&quot;10&quot;]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[bAR=&quot;10&quot;]') is true
</span><span class="cx"> PASS document.querySelector('path[pathLength]') is document.getElementById('pa')
</span><del>-PASS document.getElementById('pa').matches('path[pathLength]') is true
</del><span class="cx"> PASS document.getElementById('pa').webkitMatchesSelector('path[pathLength]') is true
</span><span class="cx"> PASS content.querySelector('path[pathlength]') is null
</span><span class="cx"> PASS content.querySelector('path[pathLengTh]') is null
</span><span class="cx"> PASS document.querySelector('path[pathLength=&quot;200&quot;]') is document.getElementById('pa')
</span><del>-PASS document.getElementById('pa').matches('path[pathLength=&quot;200&quot;]') is true
</del><span class="cx"> PASS document.getElementById('pa').webkitMatchesSelector('path[pathLength=&quot;200&quot;]') is true
</span><span class="cx"> PASS content.querySelector('path[pathlength=&quot;200&quot;]') is null
</span><span class="cx"> PASS content.querySelector('path[pathLengTh=&quot;200&quot;]') is null
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIattrnamecaseinsensitivehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-insensitive.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -18,7 +18,6 @@
</span><span class="cx">         var content = document.getElementById(&quot;content&quot;);
</span><span class="cx">         function checkMatchingSelector(selector, elementId) {
</span><span class="cx">             shouldBe(&quot;document.querySelector('&quot; + selector + &quot;')&quot;, &quot;document.getElementById('&quot; + elementId + &quot;')&quot;);
</span><del>-            shouldBeTrue(&quot;document.getElementById('&quot; + elementId + &quot;').matches('&quot; + selector + &quot;')&quot;);
</del><span class="cx">             shouldBeTrue(&quot;document.getElementById('&quot; + elementId + &quot;').webkitMatchesSelector('&quot; + selector + &quot;')&quot;);
</span><span class="cx">         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIattrnamecasesensitiveexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1,22 +1,18 @@
</span><span class="cx"> PASS document.querySelector('div[baR]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[baR]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[baR]') is true
</span><span class="cx"> PASS content.querySelector('div[bar]') is null
</span><span class="cx"> PASS content.querySelector('div[BAR]') is null
</span><span class="cx"> PASS content.querySelector('div[bAR]') is null
</span><span class="cx"> PASS document.querySelector('div[baR=&quot;10&quot;]') is document.getElementById('bar')
</span><del>-PASS document.getElementById('bar').matches('div[baR=&quot;10&quot;]') is true
</del><span class="cx"> PASS document.getElementById('bar').webkitMatchesSelector('div[baR=&quot;10&quot;]') is true
</span><span class="cx"> PASS content.querySelector('div[bar=&quot;10&quot;]') is null
</span><span class="cx"> PASS content.querySelector('div[BAR=&quot;10&quot;]') is null
</span><span class="cx"> PASS content.querySelector('div[bAR=&quot;10&quot;]') is null
</span><span class="cx"> PASS document.querySelector('path[pathLength]') is document.getElementById('pa')
</span><del>-PASS document.getElementById('pa').matches('path[pathLength]') is true
</del><span class="cx"> PASS document.getElementById('pa').webkitMatchesSelector('path[pathLength]') is true
</span><span class="cx"> PASS content.querySelector('path[pathlength]') is null
</span><span class="cx"> PASS content.querySelector('path[pathLengTh]') is null
</span><span class="cx"> PASS document.querySelector('path[pathLength=&quot;200&quot;]') is document.getElementById('pa')
</span><del>-PASS document.getElementById('pa').matches('path[pathLength=&quot;200&quot;]') is true
</del><span class="cx"> PASS document.getElementById('pa').webkitMatchesSelector('path[pathLength=&quot;200&quot;]') is true
</span><span class="cx"> PASS content.querySelector('path[pathlength=&quot;200&quot;]') is null
</span><span class="cx"> PASS content.querySelector('path[pathLengTh=&quot;200&quot;]') is null
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIattrnamecasesensitivexhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive.xhtml (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive.xhtml        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/attrname-case-sensitive.xhtml        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -21,7 +21,6 @@
</span><span class="cx">         var content = document.getElementById(&quot;content&quot;);
</span><span class="cx">         function checkMatchingSelector(selector, elementId) {
</span><span class="cx">             shouldBe(&quot;document.querySelector('&quot; + selector + &quot;')&quot;, &quot;document.getElementById('&quot; + elementId + &quot;')&quot;);
</span><del>-            shouldBeTrue(&quot;document.getElementById('&quot; + elementId + &quot;').matches('&quot; + selector + &quot;')&quot;);
</del><span class="cx">             shouldBeTrue(&quot;document.getElementById('&quot; + elementId + &quot;').webkitMatchesSelector('&quot; + selector + &quot;')&quot;);
</span><span class="cx">         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseIDalmoststrictexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -2,10 +2,6 @@
</span><span class="cx"> PASS document.querySelector('#LOWER2') is null
</span><span class="cx"> PASS document.querySelector('#UPPER1').textContent is 'UPPER 1'
</span><span class="cx"> PASS document.querySelector('#upper2') is null
</span><del>-PASS document.getElementById('lower1').matches('#lower1') is true
-PASS document.getElementById('lower2').matches('#LOWER2') is false
-PASS document.getElementById('UPPER1').matches('#UPPER1') is true
-PASS document.getElementById('UPPER2').matches('#upper2') is false
</del><span class="cx"> PASS document.getElementById('lower1').webkitMatchesSelector('#lower1') is true
</span><span class="cx"> PASS document.getElementById('lower2').webkitMatchesSelector('#LOWER2') is false
</span><span class="cx"> PASS document.getElementById('UPPER1').webkitMatchesSelector('#UPPER1') is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseIDalmoststricthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseID-almost-strict.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -16,10 +16,6 @@
</span><span class="cx">         shouldBe(&quot;document.querySelector('#UPPER1').textContent&quot;, &quot;'UPPER 1'&quot;);
</span><span class="cx">         shouldBeNull(&quot;document.querySelector('#upper2')&quot;);
</span><span class="cx"> 
</span><del>-        shouldBeTrue(&quot;document.getElementById('lower1').matches('#lower1')&quot;);
-        shouldBeFalse(&quot;document.getElementById('lower2').matches('#LOWER2')&quot;);
-        shouldBeTrue(&quot;document.getElementById('UPPER1').matches('#UPPER1')&quot;);
-        shouldBeFalse(&quot;document.getElementById('UPPER2').matches('#upper2')&quot;);
</del><span class="cx">         shouldBeTrue(&quot;document.getElementById('lower1').webkitMatchesSelector('#lower1')&quot;);
</span><span class="cx">         shouldBeFalse(&quot;document.getElementById('lower2').webkitMatchesSelector('#LOWER2')&quot;);
</span><span class="cx">         shouldBeTrue(&quot;document.getElementById('UPPER1').webkitMatchesSelector('#UPPER1')&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseIDexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseID-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseID-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseID-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -2,10 +2,6 @@
</span><span class="cx"> PASS document.querySelector('#LOWER2').textContent is 'lower 2'
</span><span class="cx"> PASS document.querySelector('#UPPER1').textContent is 'UPPER 1'
</span><span class="cx"> PASS document.querySelector('#upper2').textContent is 'UPPER 2'
</span><del>-PASS document.getElementById('lower1').matches('#lower1') is true
-PASS document.getElementById('lower2').matches('#LOWER2') is true
-PASS document.getElementById('UPPER1').matches('#UPPER1') is true
-PASS document.getElementById('UPPER2').matches('#upper2') is true
</del><span class="cx"> PASS document.getElementById('lower1').webkitMatchesSelector('#lower1') is true
</span><span class="cx"> PASS document.getElementById('lower2').webkitMatchesSelector('#LOWER2') is true
</span><span class="cx"> PASS document.getElementById('UPPER1').webkitMatchesSelector('#UPPER1') is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseIDstrictexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -2,10 +2,6 @@
</span><span class="cx"> PASS document.querySelector('#LOWER2') is null
</span><span class="cx"> PASS document.querySelector('#UPPER1').textContent is 'UPPER 1'
</span><span class="cx"> PASS document.querySelector('#upper2') is null
</span><del>-PASS document.getElementById('lower1').matches('#lower1') is true
-PASS document.getElementById('lower2').matches('#LOWER2') is false
-PASS document.getElementById('UPPER1').matches('#UPPER1') is true
-PASS document.getElementById('UPPER2').matches('#upper2') is false
</del><span class="cx"> PASS document.getElementById('lower1').webkitMatchesSelector('#lower1') is true
</span><span class="cx"> PASS document.getElementById('lower2').webkitMatchesSelector('#LOWER2') is false
</span><span class="cx"> PASS document.getElementById('UPPER1').webkitMatchesSelector('#UPPER1') is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseIDstricthtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseID-strict.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -16,10 +16,6 @@
</span><span class="cx">         shouldBe(&quot;document.querySelector('#UPPER1').textContent&quot;, &quot;'UPPER 1'&quot;);
</span><span class="cx">         shouldBeNull(&quot;document.querySelector('#upper2')&quot;);
</span><span class="cx"> 
</span><del>-        shouldBeTrue(&quot;document.getElementById('lower1').matches('#lower1')&quot;);
-        shouldBeFalse(&quot;document.getElementById('lower2').matches('#LOWER2')&quot;);
-        shouldBeTrue(&quot;document.getElementById('UPPER1').matches('#UPPER1')&quot;);
-        shouldBeFalse(&quot;document.getElementById('UPPER2').matches('#upper2')&quot;);
</del><span class="cx">         shouldBeTrue(&quot;document.getElementById('lower1').webkitMatchesSelector('#lower1')&quot;);
</span><span class="cx">         shouldBeFalse(&quot;document.getElementById('lower2').webkitMatchesSelector('#LOWER2')&quot;);
</span><span class="cx">         shouldBeTrue(&quot;document.getElementById('UPPER1').webkitMatchesSelector('#UPPER1')&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseIDhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseID.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseID.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseID.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -15,10 +15,6 @@
</span><span class="cx">         shouldBe(&quot;document.querySelector('#UPPER1').textContent&quot;, &quot;'UPPER 1'&quot;);
</span><span class="cx">         shouldBe(&quot;document.querySelector('#upper2').textContent&quot;, &quot;'UPPER 2'&quot;);
</span><span class="cx"> 
</span><del>-        shouldBeTrue(&quot;document.getElementById('lower1').matches('#lower1')&quot;);
-        shouldBeTrue(&quot;document.getElementById('lower2').matches('#LOWER2')&quot;);
-        shouldBeTrue(&quot;document.getElementById('UPPER1').matches('#UPPER1')&quot;);
-        shouldBeTrue(&quot;document.getElementById('UPPER2').matches('#upper2')&quot;);
</del><span class="cx">         shouldBeTrue(&quot;document.getElementById('lower1').webkitMatchesSelector('#lower1')&quot;);
</span><span class="cx">         shouldBeTrue(&quot;document.getElementById('lower2').webkitMatchesSelector('#LOWER2')&quot;);
</span><span class="cx">         shouldBeTrue(&quot;document.getElementById('UPPER1').webkitMatchesSelector('#UPPER1')&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseTagexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseTag-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseTag-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseTag-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1,7 +1,5 @@
</span><span class="cx"> PASS document.querySelector('div SPAN').textContent is 'lower'
</span><span class="cx"> PASS document.querySelector('div p').textContent is 'UPPER'
</span><del>-PASS document.getElementById('lower1').matches('div SPAN') is true
-PASS document.getElementById('UPPER1').matches('div p') is true
</del><span class="cx"> PASS document.getElementById('lower1').webkitMatchesSelector('div SPAN') is true
</span><span class="cx"> PASS document.getElementById('UPPER1').webkitMatchesSelector('div p') is true
</span><span class="cx"> PASS successfullyParsed is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseTaghtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseTag.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseTag.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseTag.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -11,8 +11,6 @@
</span><span class="cx">         shouldBe(&quot;document.querySelector('div SPAN').textContent&quot;, &quot;'lower'&quot;);
</span><span class="cx">         shouldBe(&quot;document.querySelector('div p').textContent&quot;, &quot;'UPPER'&quot;);
</span><span class="cx"> 
</span><del>-        shouldBeTrue(&quot;document.getElementById('lower1').matches('div SPAN')&quot;);
-        shouldBeTrue(&quot;document.getElementById('UPPER1').matches('div p')&quot;);
</del><span class="cx">         shouldBeTrue(&quot;document.getElementById('lower1').webkitMatchesSelector('div SPAN')&quot;);
</span><span class="cx">         shouldBeTrue(&quot;document.getElementById('UPPER1').webkitMatchesSelector('div p')&quot;);
</span><span class="cx">     &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseTagXexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1,5 +1,4 @@
</span><span class="cx"> PASS document.querySelector('div SPAN') is null
</span><del>-PASS document.getElementById('lower1').matches('div SPAN') is false
</del><span class="cx"> PASS document.getElementById('lower1').webkitMatchesSelector('div SPAN') is false
</span><span class="cx"> PASS successfullyParsed is true
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIcaseTagXxhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX.xhtml (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX.xhtml        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/caseTagX.xhtml        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -15,7 +15,6 @@
</span><span class="cx">     &lt;![CDATA[ 
</span><span class="cx">         shouldBeNull(&quot;document.querySelector('div SPAN')&quot;);
</span><span class="cx"> 
</span><del>-        shouldBeFalse(&quot;document.getElementById('lower1').matches('div SPAN')&quot;);
</del><span class="cx">         shouldBeFalse(&quot;document.getElementById('lower1').webkitMatchesSelector('div SPAN')&quot;);
</span><span class="cx">     ]]&gt; 
</span><span class="cx">     &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIdetachedelementexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/detached-element-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/detached-element-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/detached-element-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -11,8 +11,6 @@
</span><span class="cx"> PASS root.querySelectorAll('#testId').item(0) is correctNode
</span><span class="cx"> PASS noChild.querySelector('div') is null
</span><span class="cx"> PASS noChild.querySelectorAll('div').length is 0
</span><del>-PASS correctNode.matches('div') is true
-PASS correctNode.matches('#testId') is true
</del><span class="cx"> PASS correctNode.webkitMatchesSelector('div') is true
</span><span class="cx"> PASS correctNode.webkitMatchesSelector('#testId') is true
</span><span class="cx"> PASS successfullyParsed is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPInotsupportednamespaceinselectorexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -2,51 +2,39 @@
</span><span class="cx"> 
</span><span class="cx"> PASS: document.querySelector('bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelectorAll('bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</span><del>-PASS: document.body.matches('bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelector('*|pre') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('*|pre') did not throw
</span><del>-PASS: document.body.matches('*|pre') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('*|pre') did not throw
</span><span class="cx"> PASS: document.querySelector('|pre') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('|pre') did not throw
</span><del>-PASS: document.body.matches('|pre') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('|pre') did not throw
</span><span class="cx"> PASS: document.querySelector('div bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelectorAll('div bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</span><del>-PASS: document.body.matches('div bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('div bbb|pre') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelector('div *|pre') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('div *|pre') did not throw
</span><del>-PASS: document.body.matches('div *|pre') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('div *|pre') did not throw
</span><span class="cx"> PASS: document.querySelector('div |pre') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('div |pre') did not throw
</span><del>-PASS: document.body.matches('div |pre') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('div |pre') did not throw
</span><span class="cx"> PASS: document.querySelector('[bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelectorAll('[bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</span><del>-PASS: document.body.matches('[bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('[bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelector('[*|name=value]') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('[*|name=value]') did not throw
</span><del>-PASS: document.body.matches('[*|name=value]') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('[*|name=value]') did not throw
</span><span class="cx"> PASS: document.querySelector('[|name=value]') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('[|name=value]') did not throw
</span><del>-PASS: document.body.matches('[|name=value]') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('[|name=value]') did not throw
</span><span class="cx"> PASS: document.querySelector(':-webkit-any(bbb|pre)') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelector('div [bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelectorAll('div [bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</span><del>-PASS: document.body.matches('div [bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('div [bbb|name=value]') throws: Error: NamespaceError: DOM Exception 14
</span><span class="cx"> PASS: document.querySelector('div [*|name=value]') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('div [*|name=value]') did not throw
</span><del>-PASS: document.body.matches('div [*|name=value]') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('div [*|name=value]') did not throw
</span><span class="cx"> PASS: document.querySelector('div [|name=value]') did not throw
</span><span class="cx"> PASS: document.querySelectorAll('div [|name=value]') did not throw
</span><del>-PASS: document.body.matches('div [|name=value]') did not throw
</del><span class="cx"> PASS: document.body.webkitMatchesSelector('div [|name=value]') did not throw
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPInotsupportednamespaceinselectorhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/not-supported-namespace-in-selector.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -33,56 +33,44 @@
</span><span class="cx">     {
</span><span class="cx">         shouldThrow(&quot;document.querySelector('bbb|pre')&quot;);
</span><span class="cx">         shouldThrow(&quot;document.querySelectorAll('bbb|pre')&quot;);
</span><del>-        shouldThrow(&quot;document.body.matches('bbb|pre')&quot;);
</del><span class="cx">         shouldThrow(&quot;document.body.webkitMatchesSelector('bbb|pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('*|pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('*|pre')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('*|pre')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('*|pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('|pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('|pre')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('|pre')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('|pre')&quot;);
</span><span class="cx"> 
</span><span class="cx">         shouldThrow(&quot;document.querySelector('div bbb|pre')&quot;);
</span><span class="cx">         shouldThrow(&quot;document.querySelectorAll('div bbb|pre')&quot;);
</span><del>-        shouldThrow(&quot;document.body.matches('div bbb|pre')&quot;);
</del><span class="cx">         shouldThrow(&quot;document.body.webkitMatchesSelector('div bbb|pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('div *|pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('div *|pre')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('div *|pre')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('div *|pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('div |pre')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('div |pre')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('div |pre')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('div |pre')&quot;);
</span><span class="cx"> 
</span><span class="cx">         shouldThrow(&quot;document.querySelector('[bbb|name=value]')&quot;);
</span><span class="cx">         shouldThrow(&quot;document.querySelectorAll('[bbb|name=value]')&quot;);
</span><del>-        shouldThrow(&quot;document.body.matches('[bbb|name=value]')&quot;);
</del><span class="cx">         shouldThrow(&quot;document.body.webkitMatchesSelector('[bbb|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('[*|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('[*|name=value]')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('[*|name=value]')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('[*|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('[|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('[|name=value]')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('[|name=value]')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('[|name=value]')&quot;);
</span><span class="cx"> 
</span><span class="cx">         shouldThrow(&quot;document.querySelector(':-webkit-any(bbb|pre)')&quot;);
</span><span class="cx"> 
</span><span class="cx">         shouldThrow(&quot;document.querySelector('div [bbb|name=value]')&quot;);
</span><span class="cx">         shouldThrow(&quot;document.querySelectorAll('div [bbb|name=value]')&quot;);
</span><del>-        shouldThrow(&quot;document.body.matches('div [bbb|name=value]')&quot;);
</del><span class="cx">         shouldThrow(&quot;document.body.webkitMatchesSelector('div [bbb|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('div [*|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('div [*|name=value]')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('div [*|name=value]')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('div [*|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelector('div [|name=value]')&quot;);
</span><span class="cx">         shouldNotThrow(&quot;document.querySelectorAll('div [|name=value]')&quot;);
</span><del>-        shouldNotThrow(&quot;document.body.matches('div [|name=value]')&quot;);
</del><span class="cx">         shouldNotThrow(&quot;document.body.webkitMatchesSelector('div [|name=value]')&quot;);
</span><span class="cx">     }
</span><span class="cx"> &lt;/script&gt;
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIscripttestsdetachedelementjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -19,7 +19,5 @@
</span><span class="cx"> shouldBeNull(&quot;noChild.querySelector('div')&quot;);
</span><span class="cx"> shouldBe(&quot;noChild.querySelectorAll('div').length&quot;, &quot;0&quot;);
</span><span class="cx"> 
</span><del>-shouldBeTrue(&quot;correctNode.matches('div')&quot;);
-shouldBeTrue(&quot;correctNode.matches('#testId')&quot;);
</del><span class="cx"> shouldBeTrue(&quot;correctNode.webkitMatchesSelector('div')&quot;);
</span><span class="cx"> shouldBeTrue(&quot;correctNode.webkitMatchesSelector('#testId')&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIscripttestsundefinednullstringifyjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/undefined-null-stringify.js (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/undefined-null-stringify.js        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/undefined-null-stringify.js        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -17,7 +17,5 @@
</span><span class="cx"> shouldBe(&quot;document.querySelectorAll(undefined).length&quot;, &quot;1&quot;);
</span><span class="cx"> shouldBe(&quot;document.querySelectorAll(undefined).item(0)&quot;, &quot;undefinedNode&quot;);
</span><span class="cx"> 
</span><del>-shouldBeTrue(&quot;nullNode.matches(null)&quot;);
-shouldBeTrue(&quot;undefinedNode.matches(undefined)&quot;);
</del><span class="cx"> shouldBeTrue(&quot;nullNode.webkitMatchesSelector(null)&quot;);
</span><span class="cx"> shouldBeTrue(&quot;undefinedNode.webkitMatchesSelector(undefined)&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIscripttestsviewlessdocumentjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -20,10 +20,6 @@
</span><span class="cx"> shouldBe(&quot;testDoc.querySelector('.d1')&quot;, &quot;d1&quot;);
</span><span class="cx"> shouldBe(&quot;testDoc.querySelectorAll('p span').length&quot;, &quot;1&quot;);
</span><span class="cx"> 
</span><del>-shouldBeTrue(&quot;p1.matches('p')&quot;);
-shouldBeTrue(&quot;s1.matches('p span')&quot;);
-shouldBeTrue(&quot;s2.matches('#s2')&quot;);
-shouldBeTrue(&quot;d1.matches('.d1')&quot;);
</del><span class="cx"> shouldBeTrue(&quot;p1.webkitMatchesSelector('p')&quot;);
</span><span class="cx"> shouldBeTrue(&quot;s1.webkitMatchesSelector('p span')&quot;);
</span><span class="cx"> shouldBeTrue(&quot;s2.webkitMatchesSelector('#s2')&quot;);
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIundefinednullstringifyexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/undefined-null-stringify-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/undefined-null-stringify-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/undefined-null-stringify-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -9,8 +9,6 @@
</span><span class="cx"> PASS document.querySelectorAll(null).item(0) is nullNode
</span><span class="cx"> PASS document.querySelectorAll(undefined).length is 1
</span><span class="cx"> PASS document.querySelectorAll(undefined).item(0) is undefinedNode
</span><del>-PASS nullNode.matches(null) is true
-PASS undefinedNode.matches(undefined) is true
</del><span class="cx"> PASS nullNode.webkitMatchesSelector(null) is true
</span><span class="cx"> PASS undefinedNode.webkitMatchesSelector(undefined) is true
</span><span class="cx"> PASS successfullyParsed is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomSelectorAPIviewlessdocumentexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/SelectorAPI/viewless-document-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/SelectorAPI/viewless-document-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/dom/SelectorAPI/viewless-document-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -8,10 +8,6 @@
</span><span class="cx"> PASS testDoc.querySelectorAll('span').item(1) is s2
</span><span class="cx"> PASS testDoc.querySelector('.d1') is d1
</span><span class="cx"> PASS testDoc.querySelectorAll('p span').length is 1
</span><del>-PASS p1.matches('p') is true
-PASS s1.matches('p span') is true
-PASS s2.matches('#s2') is true
-PASS d1.matches('.d1') is true
</del><span class="cx"> PASS p1.webkitMatchesSelector('p') is true
</span><span class="cx"> PASS s1.webkitMatchesSelector('p span') is true
</span><span class="cx"> PASS s2.webkitMatchesSelector('#s2') is true
</span></span></pre></div>
<a id="trunkLayoutTestsfastformsradioradiolivevalidationstyleexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/forms/radio/radio-live-validation-style-expected.txt (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/radio/radio-live-validation-style-expected.txt        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/forms/radio/radio-live-validation-style-expected.txt        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -6,9 +6,7 @@
</span><span class="cx"> Removing a checked radio button from a required radio button group by a DOM tree mutation:
</span><span class="cx"> PASS backgroundOf($(&quot;radio1&quot;)) is validColor
</span><span class="cx"> PASS parent.removeChild($(&quot;radio2&quot;)); backgroundOf($(&quot;radio1&quot;)) is invalidColor
</span><del>-PASS $(&quot;radio1&quot;).remove(); radio2.matches(&quot;:valid&quot;) is false
-PASS radio2.remove(); radio2.matches(&quot;:valid&quot;) is true
-FAIL $(&quot;radio1&quot;).remove(); radio2.webkitMatchesSelector(&quot;:valid&quot;) should be false. Threw exception TypeError: null is not an object (evaluating '$(&quot;radio1&quot;).remove')
</del><ins>+PASS $(&quot;radio1&quot;).remove(); radio2.webkitMatchesSelector(&quot;:valid&quot;) is false
</ins><span class="cx"> PASS radio2.remove(); radio2.webkitMatchesSelector(&quot;:valid&quot;) is true
</span><span class="cx"> 
</span><span class="cx"> Removing a checked radio button from a required radio button group by name attribute change:
</span></span></pre></div>
<a id="trunkLayoutTestsfastformsradioradiolivevalidationstylehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/forms/radio/radio-live-validation-style.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/forms/radio/radio-live-validation-style.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/forms/radio/radio-live-validation-style.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -34,8 +34,6 @@
</span><span class="cx">     '&lt;input type=radio name=group1 required id=radio2&gt;' +
</span><span class="cx">     '&lt;input type=radio name=group1 required id=radio3&gt;';
</span><span class="cx"> var radio2 = $('radio2');
</span><del>-shouldBeFalse('$(&quot;radio1&quot;).remove(); radio2.matches(&quot;:valid&quot;)');
-shouldBeTrue('radio2.remove(); radio2.matches(&quot;:valid&quot;)');
</del><span class="cx"> shouldBeFalse('$(&quot;radio1&quot;).remove(); radio2.webkitMatchesSelector(&quot;:valid&quot;)');
</span><span class="cx"> shouldBeTrue('radio2.remove(); radio2.webkitMatchesSelector(&quot;:valid&quot;)');
</span><span class="cx"> debug('');
</span></span></pre></div>
<a id="trunkLayoutTestsfastharnessresultshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/harness/results.html (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/harness/results.html        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/LayoutTests/fast/harness/results.html        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -273,9 +273,6 @@
</span><span class="cx"> 
</span><span class="cx"> function matchesSelector(node, selector)
</span><span class="cx"> {
</span><del>-    if (node.matches)
-        return node.matches(selector);
-
</del><span class="cx">     if (node.webkitMatchesSelector)
</span><span class="cx">         return node.webkitMatchesSelector(selector);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/Source/WebCore/ChangeLog        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2014-04-21  Commit Queue  &lt;commit-queue@webkit.org&gt;
+
+        Unreviewed, rolling out r167584.
+        https://bugs.webkit.org/show_bug.cgi?id=131929
+
+        Broke Objective-C bindings test (Requested by ap on #webkit).
+
+        Reverted changeset:
+
+        &quot;Add Element.matches, the standard name for
+        webkitMatchesSelector&quot;
+        https://bugs.webkit.org/show_bug.cgi?id=131922
+        http://trac.webkit.org/changeset/167584
+
</ins><span class="cx"> 2014-04-20  Benjamin Poulain  &lt;benjamin@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         Compile the :root pseudo class and fix a related issue with :nth-child()
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorObjCpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1559,8 +1559,7 @@
</span><span class="cx">                 unshift(@parameterNames, $caller);
</span><span class="cx">                 $content = &quot;${implementedBy}::&quot; . $codeGenerator-&gt;WK_lcfirst($functionName) . &quot;(&quot; . join(&quot;, &quot;, @parameterNames) . &quot;)&quot;;
</span><span class="cx">             } else {
</span><del>-                my $functionImplementationName = $function-&gt;signature-&gt;extendedAttributes-&gt;{&quot;ImplementedAs&quot;} || $codeGenerator-&gt;WK_lcfirst($functionName);
-                $content = &quot;$caller-&gt;&quot; . $functionImplementationName . &quot;(&quot; . join(&quot;, &quot;, @parameterNames) . &quot;)&quot;;
</del><ins>+                $content = &quot;$caller-&gt;&quot; . $codeGenerator-&gt;WK_lcfirst($functionName) . &quot;(&quot; . join(&quot;, &quot;, @parameterNames) . &quot;)&quot;;
</ins><span class="cx">             }
</span><span class="cx"> 
</span><span class="cx">             if ($returnType eq &quot;void&quot;) {
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.cpp (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.cpp        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/Source/WebCore/dom/Element.cpp        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -2296,7 +2296,7 @@
</span><span class="cx">     return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool Element::matches(const String&amp; selector, ExceptionCode&amp; ec)
</del><ins>+bool Element::webkitMatchesSelector(const String&amp; selector, ExceptionCode&amp; ec)
</ins><span class="cx"> {
</span><span class="cx">     SelectorQuery* selectorQuery = document().selectorQueryForString(selector, ec);
</span><span class="cx">     return selectorQuery &amp;&amp; selectorQuery-&gt;matches(*this);
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.h (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.h        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/Source/WebCore/dom/Element.h        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -456,7 +456,7 @@
</span><span class="cx"> 
</span><span class="cx">     virtual bool matchesReadOnlyPseudoClass() const;
</span><span class="cx">     virtual bool matchesReadWritePseudoClass() const;
</span><del>-    bool matches(const String&amp; selectors, ExceptionCode&amp;);
</del><ins>+    bool webkitMatchesSelector(const String&amp; selectors, ExceptionCode&amp;);
</ins><span class="cx">     virtual bool shouldAppearIndeterminate() const;
</span><span class="cx"> 
</span><span class="cx">     DOMTokenList* classList();
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.idl (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.idl        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/Source/WebCore/dom/Element.idl        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -107,8 +107,8 @@
</span><span class="cx">     [RaisesException] Element querySelector(DOMString selectors);
</span><span class="cx">     [RaisesException] NodeList querySelectorAll(DOMString selectors);
</span><span class="cx"> 
</span><del>-    [RaisesException] boolean matches([Default=Undefined] optional DOMString selectors);
-    [ImplementedAs=matches, RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional DOMString selectors);
</del><ins>+    // WebKit extension, pending specification.
+    [RaisesException] boolean webkitMatchesSelector([Default=Undefined] optional DOMString selectors);
</ins><span class="cx"> 
</span><span class="cx">     // ElementTraversal API
</span><span class="cx">     readonly attribute Element firstElementChild;
</span></span></pre></div>
<a id="trunkSourceWebCoreinspectorInspectorCSSAgentcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp (167587 => 167588)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp        2014-04-21 06:42:52 UTC (rev 167587)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp        2014-04-21 07:25:05 UTC (rev 167588)
</span><span class="lines">@@ -1158,7 +1158,7 @@
</span><span class="cx">         const CSSSelectorList&amp; selectorList = matchedStyleRule-&gt;selectorList();
</span><span class="cx">         long index = 0;
</span><span class="cx">         for (const CSSSelector* selector = selectorList.first(); selector; selector = CSSSelectorList::next(selector)) {
</span><del>-            bool matched = element-&gt;matches(selector-&gt;selectorText(), IGNORE_EXCEPTION);
</del><ins>+            bool matched = element-&gt;webkitMatchesSelector(selector-&gt;selectorText(), IGNORE_EXCEPTION);
</ins><span class="cx">             if (matched)
</span><span class="cx">                 matchingSelectors-&gt;addItem(index);
</span><span class="cx">             ++index;
</span></span></pre>
</div>
</div>

</body>
</html>