<!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>[202870] 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/202870">202870</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-07-06 12:54:07 -0700 (Wed, 06 Jul 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add support for Node.isConnected
https://bugs.webkit.org/show_bug.cgi?id=159474
<rdar://problem/27197947>
Reviewed by Ryosuke Niwa.
LayoutTests/imported/w3c:
* web-platform-tests/dom/interfaces-expected.txt:
Rebaseline now that more checks are passing.
* web-platform-tests/dom/nodes/Node-isConnected-expected.txt: Added.
* web-platform-tests/dom/nodes/Node-isConnected.html: Added.
Import W3C test for Node.isConnected.
Source/WebCore:
Add support for Node.isConnected as per:
- https://dom.spec.whatwg.org/#dom-node-isconnected
Chrome already supports this.
Test: imported/w3c/web-platform-tests/dom/nodes/Node-isConnected.html
* dom/Node.idl:
LayoutTests:
Rebaseline test now that a new property is exposed on nodes.
* js/dom/dom-static-property-for-in-iteration-expected.txt:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdominterfacesexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt</a></li>
<li><a href="#trunkLayoutTestsjsdomdomstaticpropertyforiniterationexpectedtxt">trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomNodeidl">trunk/Source/WebCore/dom/Node.idl</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodeisConnectedexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodeisConnectedhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected.html</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (202869 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-07-06 19:17:25 UTC (rev 202869)
+++ trunk/LayoutTests/ChangeLog        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2016-07-06 Chris Dumez <cdumez@apple.com>
+
+ Add support for Node.isConnected
+ https://bugs.webkit.org/show_bug.cgi?id=159474
+ <rdar://problem/27197947>
+
+ Reviewed by Ryosuke Niwa.
+
+ Rebaseline test now that a new property is exposed on nodes.
+
+ * js/dom/dom-static-property-for-in-iteration-expected.txt:
+
</ins><span class="cx"> 2016-07-06 Commit Queue <commit-queue@webkit.org>
</span><span class="cx">
</span><span class="cx"> Unreviewed, rolling out r198928 and r198985.
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (202869 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-07-06 19:17:25 UTC (rev 202869)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -1,3 +1,18 @@
</span><ins>+2016-07-06 Chris Dumez <cdumez@apple.com>
+
+ Add support for Node.isConnected
+ https://bugs.webkit.org/show_bug.cgi?id=159474
+ <rdar://problem/27197947>
+
+ Reviewed by Ryosuke Niwa.
+
+ * web-platform-tests/dom/interfaces-expected.txt:
+ Rebaseline now that more checks are passing.
+
+ * web-platform-tests/dom/nodes/Node-isConnected-expected.txt: Added.
+ * web-platform-tests/dom/nodes/Node-isConnected.html: Added.
+ Import W3C test for Node.isConnected.
+
</ins><span class="cx"> 2016-07-05 Youenn Fablet <youenn@apple.com>
</span><span class="cx">
</span><span class="cx"> Refresh WPT tests up to 03916af
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdominterfacesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt (202869 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt        2016-07-06 19:17:25 UTC (rev 202869)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/interfaces-expected.txt        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -202,7 +202,7 @@
</span><span class="cx"> PASS Node interface: attribute nodeType
</span><span class="cx"> PASS Node interface: attribute nodeName
</span><span class="cx"> PASS Node interface: attribute baseURI
</span><del>-FAIL Node interface: attribute isConnected assert_true: The prototype object must have a property "isConnected" expected true got false
</del><ins>+PASS Node interface: attribute isConnected
</ins><span class="cx"> PASS Node interface: attribute ownerDocument
</span><span class="cx"> PASS Node interface: attribute parentNode
</span><span class="cx"> PASS Node interface: attribute parentElement
</span><span class="lines">@@ -377,7 +377,7 @@
</span><span class="cx"> PASS Node interface: new Document() must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: new Document() must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> FAIL Node interface: new Document() must inherit property "baseURI" with the proper type (14) assert_equals: expected "string" but got "object"
</span><del>-FAIL Node interface: new Document() must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: new Document() must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: new Document() must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: new Document() must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: new Document() must inherit property "parentElement" with the proper type (18)
</span><span class="lines">@@ -547,7 +547,7 @@
</span><span class="cx"> PASS Node interface: xmlDoc must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: xmlDoc must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> FAIL Node interface: xmlDoc must inherit property "baseURI" with the proper type (14) assert_equals: expected "string" but got "object"
</span><del>-FAIL Node interface: xmlDoc must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: xmlDoc must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: xmlDoc must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: xmlDoc must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: xmlDoc must inherit property "parentElement" with the proper type (18)
</span><span class="lines">@@ -677,7 +677,7 @@
</span><span class="cx"> PASS Node interface: document.doctype must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: document.doctype must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> PASS Node interface: document.doctype must inherit property "baseURI" with the proper type (14)
</span><del>-FAIL Node interface: document.doctype must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: document.doctype must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: document.doctype must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: document.doctype must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: document.doctype must inherit property "parentElement" with the proper type (18)
</span><span class="lines">@@ -793,7 +793,7 @@
</span><span class="cx"> PASS Node interface: document.createDocumentFragment() must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: document.createDocumentFragment() must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> PASS Node interface: document.createDocumentFragment() must inherit property "baseURI" with the proper type (14)
</span><del>-FAIL Node interface: document.createDocumentFragment() must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: document.createDocumentFragment() must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: document.createDocumentFragment() must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: document.createDocumentFragment() must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: document.createDocumentFragment() must inherit property "parentElement" with the proper type (18)
</span><span class="lines">@@ -1040,7 +1040,7 @@
</span><span class="cx"> PASS Node interface: element must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: element must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> FAIL Node interface: element must inherit property "baseURI" with the proper type (14) assert_equals: expected "string" but got "object"
</span><del>-FAIL Node interface: element must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: element must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: element must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: element must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: element must inherit property "parentElement" with the proper type (18)
</span><span class="lines">@@ -1221,7 +1221,7 @@
</span><span class="cx"> PASS Node interface: document.createTextNode("abc") must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: document.createTextNode("abc") must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> PASS Node interface: document.createTextNode("abc") must inherit property "baseURI" with the proper type (14)
</span><del>-FAIL Node interface: document.createTextNode("abc") must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: document.createTextNode("abc") must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: document.createTextNode("abc") must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: document.createTextNode("abc") must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: document.createTextNode("abc") must inherit property "parentElement" with the proper type (18)
</span><span class="lines">@@ -1335,7 +1335,7 @@
</span><span class="cx"> PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> FAIL Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "baseURI" with the proper type (14) assert_equals: expected "string" but got "object"
</span><del>-FAIL Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: xmlDoc.createProcessingInstruction("abc", "def") must inherit property "parentElement" with the proper type (18)
</span><span class="lines">@@ -1447,7 +1447,7 @@
</span><span class="cx"> PASS Node interface: document.createComment("abc") must inherit property "nodeType" with the proper type (12)
</span><span class="cx"> PASS Node interface: document.createComment("abc") must inherit property "nodeName" with the proper type (13)
</span><span class="cx"> PASS Node interface: document.createComment("abc") must inherit property "baseURI" with the proper type (14)
</span><del>-FAIL Node interface: document.createComment("abc") must inherit property "isConnected" with the proper type (15) assert_inherits: property "isConnected" not found in prototype chain
</del><ins>+PASS Node interface: document.createComment("abc") must inherit property "isConnected" with the proper type (15)
</ins><span class="cx"> PASS Node interface: document.createComment("abc") must inherit property "ownerDocument" with the proper type (16)
</span><span class="cx"> PASS Node interface: document.createComment("abc") must inherit property "parentNode" with the proper type (17)
</span><span class="cx"> PASS Node interface: document.createComment("abc") must inherit property "parentElement" with the proper type (18)
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodeisConnectedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected-expected.txt (0 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected-expected.txt         (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected-expected.txt        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+
+PASS Test with ordinary child nodes
+PASS Test with iframes
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodeisConnectedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected.html (0 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected.html         (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-isConnected.html        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -0,0 +1,95 @@
</span><ins>+<!DOCTYPE html>
+<meta charset="utf-8">
+<head>
+<title>Node.prototype.isConnected</title>
+<link rel=help href="https://dom.spec.whatwg.org/#dom-node-isconnected">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+</head>
+<body>
+<script>
+
+"use strict";
+
+test(function() {
+ var nodes = [document.createElement("div"),
+ document.createElement("div"),
+ document.createElement("div")];
+ checkNodes([], nodes);
+
+ // Append nodes[0].
+ document.body.appendChild(nodes[0]);
+ checkNodes([nodes[0]],
+ [nodes[1], nodes[2]]);
+
+ // Append nodes[1] and nodes[2] together.
+ nodes[1].appendChild(nodes[2]);
+ checkNodes([nodes[0]],
+ [nodes[1], nodes[2]]);
+
+ nodes[0].appendChild(nodes[1]);
+ checkNodes(nodes, []);
+
+ // Remove nodes[2].
+ nodes[2].remove();
+ checkNodes([nodes[0], nodes[1]],
+ [nodes[2]]);
+
+ // Remove nodes[0] and nodes[1] together.
+ nodes[0].remove();
+ checkNodes([], nodes);
+}, "Test with ordinary child nodes");
+
+test(function() {
+ var nodes = [document.createElement("iframe"),
+ document.createElement("iframe"),
+ document.createElement("iframe"),
+ document.createElement("iframe"),
+ document.createElement("div")];
+ var frames = [nodes[0],
+ nodes[1],
+ nodes[2],
+ nodes[3]];
+ checkNodes([], nodes);
+
+ // Since we cannot append anything to the contentWindow of an iframe before it
+ // is appended to the main DOM tree, we append the iframes one after another.
+ document.body.appendChild(nodes[0]);
+ checkNodes([nodes[0]],
+ [nodes[1], nodes[2], nodes[3], nodes[4]]);
+
+ frames[0].contentDocument.body.appendChild(nodes[1]);
+ checkNodes([nodes[0], nodes[1]],
+ [nodes[2], nodes[3], nodes[4]]);
+
+ frames[1].contentDocument.body.appendChild(nodes[2]);
+ checkNodes([nodes[0], nodes[1], nodes[2]],
+ [nodes[3], nodes[4]]);
+
+ frames[2].contentDocument.body.appendChild(nodes[3]);
+ checkNodes([nodes[0], nodes[1], nodes[2], nodes[3]],
+ [nodes[4]]);
+
+ frames[3].contentDocument.body.appendChild(nodes[4]);
+ checkNodes(nodes, []);
+
+ frames[3].remove();
+ // Since node[4] is still under the doument of frame[3], it's still connected.
+ checkNodes([nodes[0], nodes[1], nodes[2], nodes[4]],
+ [nodes[3]]);
+
+ frames[0].remove();
+ // Since node[1] and node[2] are still under the doument of frame[0], they are
+ // still connected.
+ checkNodes([nodes[1], nodes[2], nodes[4]],
+ [nodes[0], nodes[3]]);
+}, "Test with iframes");
+
+// This helper function is used to check whether nodes should be connected.
+function checkNodes(aConnectedNodes, aDisconnectedNodes) {
+ aConnectedNodes.forEach(node => assert_true(node.isConnected));
+ aDisconnectedNodes.forEach(node => assert_false(node.isConnected));
+}
+
+</script>
+</body>
</ins></span></pre></div>
<a id="trunkLayoutTestsjsdomdomstaticpropertyforiniterationexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt (202869 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt        2016-07-06 19:17:25 UTC (rev 202869)
+++ trunk/LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -147,6 +147,7 @@
</span><span class="cx"> PASS a["prefix"] is null
</span><span class="cx"> PASS a["localName"] is a
</span><span class="cx"> PASS a["textContent"] is nerget
</span><ins>+PASS a["isConnected"] is true
</ins><span class="cx"> PASS a["parentElement"] is [object HTMLBodyElement]
</span><span class="cx"> PASS a["ELEMENT_NODE"] is 1
</span><span class="cx"> PASS a["ATTRIBUTE_NODE"] is 2
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (202869 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-07-06 19:17:25 UTC (rev 202869)
+++ trunk/Source/WebCore/ChangeLog        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2016-07-06 Chris Dumez <cdumez@apple.com>
+
+ Add support for Node.isConnected
+ https://bugs.webkit.org/show_bug.cgi?id=159474
+ <rdar://problem/27197947>
+
+ Reviewed by Ryosuke Niwa.
+
+ Add support for Node.isConnected as per:
+ - https://dom.spec.whatwg.org/#dom-node-isconnected
+
+ Chrome already supports this.
+
+ Test: imported/w3c/web-platform-tests/dom/nodes/Node-isConnected.html
+
+ * dom/Node.idl:
+
</ins><span class="cx"> 2016-07-06 Brady Eidson <beidson@apple.com>
</span><span class="cx">
</span><span class="cx"> Update IndexedDB's status on the feature page (How had we not done this already?)
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodeidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.idl (202869 => 202870)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.idl        2016-07-06 19:17:25 UTC (rev 202869)
+++ trunk/Source/WebCore/dom/Node.idl        2016-07-06 19:54:07 UTC (rev 202870)
</span><span class="lines">@@ -120,6 +120,8 @@
</span><span class="cx"> // FIXME: other should not be optional.
</span><span class="cx"> boolean contains(optional Node? other = null);
</span><span class="cx">
</span><ins>+ [EnabledAtRuntime=ShadowDOM, ImplementedAs=inDocument] readonly attribute boolean isConnected;
+
</ins><span class="cx"> // IE extensions
</span><span class="cx"> readonly attribute Element parentElement;
</span><span class="cx">
</span></span></pre>
</div>
</div>
</body>
</html>