<!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>[196883] trunk/LayoutTests/imported/w3c</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/196883">196883</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-02-21 17:27:43 -0800 (Sun, 21 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Re-sync W3C HTML/DOM web-platform-tests
https://bugs.webkit.org/show_bug.cgi?id=154513

Reviewed by Darin Adler.

Re-sync W3C HTML/DOM web-platform-tests after:
- https://github.com/w3c/web-platform-tests/pull/2597
- https://github.com/w3c/web-platform-tests/pull/2598
- https://github.com/w3c/web-platform-tests/pull/2599

* web-platform-tests/html/dom/elements-embedded.js:
* web-platform-tests/html/dom/elements-misc.js:
* web-platform-tests/html/dom/interfaces.html:
* web-platform-tests/html/dom/reflection-embedded-expected.txt:
* web-platform-tests/html/dom/reflection-misc-expected.txt:
* web-platform-tests/html/dom/reflection.js:
(ReflectionTests.doReflects):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomelementsembeddedjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-embedded.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomelementsmiscjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-misc.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldominterfacesexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldominterfaceshtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionembeddedexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionmiscexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -1,3 +1,23 @@
</span><ins>+2016-02-21  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Re-sync W3C HTML/DOM web-platform-tests
+        https://bugs.webkit.org/show_bug.cgi?id=154513
+
+        Reviewed by Darin Adler.
+
+        Re-sync W3C HTML/DOM web-platform-tests after:
+        - https://github.com/w3c/web-platform-tests/pull/2597
+        - https://github.com/w3c/web-platform-tests/pull/2598
+        - https://github.com/w3c/web-platform-tests/pull/2599
+
+        * web-platform-tests/html/dom/elements-embedded.js:
+        * web-platform-tests/html/dom/elements-misc.js:
+        * web-platform-tests/html/dom/interfaces.html:
+        * web-platform-tests/html/dom/reflection-embedded-expected.txt:
+        * web-platform-tests/html/dom/reflection-misc-expected.txt:
+        * web-platform-tests/html/dom/reflection.js:
+        (ReflectionTests.doReflects):
+
</ins><span class="cx"> 2016-02-19  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         HTMLFormElement.autocomplete should only return known values
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomelementsembeddedjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-embedded.js (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-embedded.js        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-embedded.js        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -5,7 +5,7 @@
</span><span class="cx">     alt: &quot;string&quot;,
</span><span class="cx">     src: &quot;url&quot;,
</span><span class="cx">     srcset: &quot;string&quot;,
</span><del>-    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;&quot;, &quot;anonymous&quot;, &quot;use-credentials&quot;]},
</del><ins>+    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;anonymous&quot;, &quot;use-credentials&quot;], nonCanon:{&quot;&quot;: &quot;anonymous&quot;}, isNullable: true, defaultVal: null, invalidVal: &quot;anonymous&quot;},
</ins><span class="cx">     useMap: &quot;string&quot;,
</span><span class="cx">     isMap: &quot;boolean&quot;,
</span><span class="cx">     width: {type: &quot;unsigned long&quot;, customGetter: true},
</span><span class="lines">@@ -84,7 +84,7 @@
</span><span class="cx">   video: {
</span><span class="cx">     // HTMLMediaElement
</span><span class="cx">     src: &quot;url&quot;,
</span><del>-    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;anonymous&quot;, &quot;use-credentials&quot;], nonCanon:{&quot;&quot;: &quot;anonymous&quot;}},
</del><ins>+    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;anonymous&quot;, &quot;use-credentials&quot;], nonCanon:{&quot;&quot;: &quot;anonymous&quot;}, isNullable: true, defaultVal: null, invalidVal: &quot;anonymous&quot;},
</ins><span class="cx">     // As with &quot;keytype&quot;, we have no missing value default defined here.
</span><span class="cx">     preload: {type: &quot;enum&quot;, keywords: [&quot;none&quot;, &quot;metadata&quot;, &quot;auto&quot;], nonCanon: {&quot;&quot;: &quot;auto&quot;}, defaultVal: null},
</span><span class="cx">     autoplay: &quot;boolean&quot;,
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx">   audio: {
</span><span class="cx">     // HTMLMediaElement
</span><span class="cx">     src: &quot;url&quot;,
</span><del>-    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;anonymous&quot;, &quot;use-credentials&quot;], nonCanon:{&quot;&quot;: &quot;anonymous&quot;}},
</del><ins>+    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;anonymous&quot;, &quot;use-credentials&quot;], nonCanon:{&quot;&quot;: &quot;anonymous&quot;}, isNullable: true, defaultVal: null, invalidVal: &quot;anonymous&quot;},
</ins><span class="cx">     // As with &quot;keytype&quot;, we have no missing value default defined here.
</span><span class="cx">     preload: {type: &quot;enum&quot;, keywords: [&quot;none&quot;, &quot;metadata&quot;, &quot;auto&quot;], nonCanon: {&quot;&quot;: &quot;auto&quot;}, defaultVal: null},
</span><span class="cx">     autoplay: &quot;boolean&quot;,
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomelementsmiscjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-misc.js (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-misc.js        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/elements-misc.js        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx">     charset: &quot;string&quot;,
</span><span class="cx">     // TODO: async attribute (complicated).
</span><span class="cx">     defer: &quot;boolean&quot;,
</span><del>-    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;anonymous&quot;, &quot;use-credentials&quot;], nonCanon:{&quot;&quot;: &quot;anonymous&quot;}},
</del><ins>+    crossOrigin: {type: &quot;enum&quot;, keywords: [&quot;anonymous&quot;, &quot;use-credentials&quot;], nonCanon:{&quot;&quot;: &quot;anonymous&quot;}, isNullable: true, defaultVal: null, invalidVal: &quot;anonymous&quot;},
</ins><span class="cx">   },
</span><span class="cx">   noscript: {},
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldominterfacesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -751,31 +751,24 @@
</span><span class="cx"> PASS EventTarget interface: calling dispatchEvent(Event) on document.implementation.createDocument(null, &quot;&quot;, null) with too few arguments must throw TypeError 
</span><span class="cx"> FAIL MouseEvent interface: attribute region assert_true: The prototype object must have a property &quot;region&quot; expected true got false
</span><span class="cx"> FAIL Touch interface: attribute region assert_own_property: self does not have own property &quot;Touch&quot; expected property &quot;Touch&quot; missing
</span><del>-FAIL HTMLAllCollection interface: existence and properties of interface object assert_equals: prototype of HTMLAllCollection is not HTMLCollection expected function &quot;function HTMLCollection() {
-    [native code]
-}&quot; but got function &quot;function () {
-    [native code]
-}&quot;
</del><ins>+PASS HTMLAllCollection interface: existence and properties of interface object 
</ins><span class="cx"> PASS HTMLAllCollection interface object length 
</span><span class="cx"> PASS HTMLAllCollection interface object name 
</span><del>-FAIL HTMLAllCollection interface: existence and properties of interface prototype object assert_equals: prototype of HTMLAllCollection.prototype is not HTMLCollection.prototype expected object &quot;[object HTMLCollectionPrototype]&quot; but got object &quot;[object Object]&quot;
</del><ins>+PASS HTMLAllCollection interface: existence and properties of interface prototype object 
</ins><span class="cx"> PASS HTMLAllCollection interface: existence and properties of interface prototype object's &quot;constructor&quot; property 
</span><ins>+PASS HTMLAllCollection interface: attribute length 
</ins><span class="cx"> FAIL HTMLAllCollection interface: operation item(unsigned long) assert_equals: property has wrong .length expected 1 but got 0
</span><span class="cx"> FAIL HTMLAllCollection interface: operation item(DOMString) assert_equals: property has wrong .length expected 1 but got 0
</span><span class="cx"> PASS HTMLAllCollection interface: operation namedItem(DOMString) 
</span><span class="cx"> FAIL HTMLAllCollection must be primary interface of document.all assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</span><span class="cx"> FAIL Stringification of document.all assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</span><del>-FAIL HTMLAllCollection interface: document.all must inherit property &quot;item&quot; with the proper type (0) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
-FAIL HTMLAllCollection interface: calling item(unsigned long) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</del><ins>+FAIL HTMLAllCollection interface: document.all must inherit property &quot;length&quot; with the proper type (0) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</ins><span class="cx"> FAIL HTMLAllCollection interface: document.all must inherit property &quot;item&quot; with the proper type (1) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</span><ins>+FAIL HTMLAllCollection interface: calling item(unsigned long) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
+FAIL HTMLAllCollection interface: document.all must inherit property &quot;item&quot; with the proper type (2) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</ins><span class="cx"> FAIL HTMLAllCollection interface: calling item(DOMString) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</span><del>-FAIL HTMLAllCollection interface: document.all must inherit property &quot;namedItem&quot; with the proper type (2) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</del><ins>+FAIL HTMLAllCollection interface: document.all must inherit property &quot;namedItem&quot; with the proper type (3) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</ins><span class="cx"> FAIL HTMLAllCollection interface: calling namedItem(DOMString) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</span><del>-FAIL HTMLCollection interface: document.all must inherit property &quot;length&quot; with the proper type (0) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
-FAIL HTMLCollection interface: document.all must inherit property &quot;item&quot; with the proper type (1) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
-FAIL HTMLCollection interface: calling item(unsigned long) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
-FAIL HTMLCollection interface: document.all must inherit property &quot;namedItem&quot; with the proper type (2) assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
-FAIL HTMLCollection interface: calling namedItem(DOMString) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected &quot;function&quot; but got &quot;undefined&quot;
</del><span class="cx"> PASS HTMLFormControlsCollection interface: existence and properties of interface object 
</span><span class="cx"> PASS HTMLFormControlsCollection interface object length 
</span><span class="cx"> PASS HTMLFormControlsCollection interface object name 
</span><span class="lines">@@ -1612,7 +1605,7 @@
</span><span class="cx"> PASS HTMLAnchorElement interface: attribute rev 
</span><span class="cx"> PASS HTMLAnchorElement interface: attribute shape 
</span><span class="cx"> PASS HTMLAnchorElement interface: attribute href 
</span><del>-FAIL HTMLAnchorElement interface: attribute origin assert_equals: setter must be function for PutForwards, Replaceable, or non-readonly attributes expected &quot;function&quot; but got &quot;undefined&quot;
</del><ins>+PASS HTMLAnchorElement interface: attribute origin 
</ins><span class="cx"> PASS HTMLAnchorElement interface: attribute protocol 
</span><span class="cx"> FAIL HTMLAnchorElement interface: attribute username assert_true: The prototype object must have a property &quot;username&quot; expected true got false
</span><span class="cx"> FAIL HTMLAnchorElement interface: attribute password assert_true: The prototype object must have a property &quot;password&quot; expected true got false
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldominterfaceshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces.html        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -859,7 +859,7 @@
</span><span class="cx"> [NoInterfaceObject, Exposed=Window]
</span><span class="cx"> interface HTMLHyperlinkElementUtils {
</span><span class="cx">   stringifier attribute USVString href;
</span><del>-           attribute USVString origin;
</del><ins>+  readonly attribute USVString origin;
</ins><span class="cx">            attribute USVString protocol;
</span><span class="cx">            attribute USVString username;
</span><span class="cx">            attribute USVString password;
</span><span class="lines">@@ -871,11 +871,11 @@
</span><span class="cx">            attribute USVString hash;
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-interface HTMLAllCollection : HTMLCollection {
-  // inherits length and 'getter'
-  Element? item(unsigned long index);
</del><ins>+interface HTMLAllCollection {
+  readonly attribute unsigned long length;
+  getter Element? item(unsigned long index);
</ins><span class="cx">   (HTMLCollection or Element)? item(DOMString name);
</span><del>-  legacycaller getter (HTMLCollection or Element)? namedItem(DOMString name); // shadows inherited namedItem()
</del><ins>+  legacycaller getter (HTMLCollection or Element)? namedItem(DOMString name);
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> interface HTMLFormControlsCollection : HTMLCollection {
</span><span class="lines">@@ -1048,7 +1048,7 @@
</span><span class="cx"> 
</span><span class="cx"> interface HTMLLinkElement : HTMLElement {
</span><span class="cx">            attribute DOMString href;
</span><del>-           attribute DOMString crossOrigin;
</del><ins>+           attribute DOMString? crossOrigin;
</ins><span class="cx">            attribute DOMString rel;
</span><span class="cx">   [PutForwards=value] readonly attribute DOMTokenList relList;
</span><span class="cx">            attribute DOMString media;
</span><span class="lines">@@ -1173,7 +1173,7 @@
</span><span class="cx">            attribute DOMString src;
</span><span class="cx">            attribute DOMString srcset;
</span><span class="cx">            attribute DOMString sizes;
</span><del>-           attribute DOMString crossOrigin;
</del><ins>+           attribute DOMString? crossOrigin;
</ins><span class="cx">            attribute DOMString useMap;
</span><span class="cx">            attribute boolean isMap;
</span><span class="cx">            attribute unsigned long width;
</span><span class="lines">@@ -1286,7 +1286,7 @@
</span><span class="cx">   // network state
</span><span class="cx">            attribute DOMString src;
</span><span class="cx">   readonly attribute DOMString currentSrc;
</span><del>-           attribute DOMString crossOrigin;
</del><ins>+           attribute DOMString? crossOrigin;
</ins><span class="cx">   const unsigned short NETWORK_EMPTY = 0;
</span><span class="cx">   const unsigned short NETWORK_IDLE = 1;
</span><span class="cx">   const unsigned short NETWORK_LOADING = 2;
</span><span class="lines">@@ -1949,7 +1949,7 @@
</span><span class="cx">            attribute DOMString charset;
</span><span class="cx">            attribute boolean async;
</span><span class="cx">            attribute boolean defer;
</span><del>-           attribute DOMString crossOrigin;
</del><ins>+           attribute DOMString? crossOrigin;
</ins><span class="cx">            attribute DOMString text;
</span><span class="cx"> 
</span><span class="cx">   // also has obsolete members
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionembeddedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -850,114 +850,115 @@
</span><span class="cx"> PASS img.srcset: IDL set to object &quot;test-valueOf&quot; should not throw 
</span><span class="cx"> PASS img.srcset: IDL set to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><span class="cx"> PASS img.srcset: IDL set to object &quot;test-valueOf&quot; followed by IDL get 
</span><del>-PASS img.crossOrigin: typeof IDL attribute 
-PASS img.crossOrigin: IDL get with DOM attribute unset 
</del><ins>+FAIL img.crossOrigin: typeof IDL attribute assert_equals: expected &quot;object&quot; but got &quot;string&quot;
+FAIL img.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (string) &quot;&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><del>-PASS img.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get 
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to undefined followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to undefined followed by IDL get assert_equals: expected &quot;&quot; but got &quot;undefined&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to undefined followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;undefined&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to 7 followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to 7 followed by IDL get assert_equals: expected &quot;&quot; but got &quot;7&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to 7 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;7&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to 1.5 followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to 1.5 followed by IDL get assert_equals: expected &quot;&quot; but got &quot;1.5&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to 1.5 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;1.5&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to true followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to true followed by IDL get assert_equals: expected &quot;&quot; but got &quot;true&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to true followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;true&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to false followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to false followed by IDL get assert_equals: expected &quot;&quot; but got &quot;false&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to false followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;false&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object &quot;[object Object]&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;[object Object]&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;[object Object]&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to NaN followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to NaN followed by IDL get assert_equals: expected &quot;&quot; but got &quot;NaN&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to NaN followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;NaN&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to Infinity followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to Infinity followed by IDL get assert_equals: expected &quot;&quot; but got &quot;Infinity&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;Infinity&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to -Infinity followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to -Infinity followed by IDL get assert_equals: expected &quot;&quot; but got &quot;-Infinity&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to -Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;-Infinity&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;\0&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;\0&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;\0&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to null followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to null followed by IDL get assert_equals: expected &quot;&quot; but got &quot;null&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to null followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;null&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object &quot;test-toString&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;test-toString&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;test-toString&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;test-valueOf&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;test-valueOf&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;anonymous&quot; followed by getAttribute() 
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;anonymous&quot; followed by IDL get 
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;xanonymous&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;xanonymous&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;xanonymous&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;xanonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xanonymous&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;anonymous\0&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;anonymous\0&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;anonymous\0&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;anonymous\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;anonymous\0&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;nonymous&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;nonymous&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;nonymous&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;nonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;nonymous&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by getAttribute() 
</span><span class="cx"> FAIL img.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;ANONYMOUS&quot;
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;use-credentials&quot; followed by getAttribute() 
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;use-credentials&quot; followed by IDL get 
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;xuse-credentials&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;xuse-credentials&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;xuse-credentials&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;xuse-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xuse-credentials&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;use-credentials\0&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;use-credentials\0&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;use-credentials\0&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;use-credentials\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;use-credentials\0&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;se-credentials&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;se-credentials&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;se-credentials&quot;
</del><ins>+FAIL img.crossOrigin: setAttribute() to &quot;se-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;se-credentials&quot;
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;USE-CREDENTIALS&quot; followed by getAttribute() 
</span><span class="cx"> FAIL img.crossOrigin: setAttribute() to &quot;USE-CREDENTIALS&quot; followed by IDL get assert_equals: expected &quot;use-credentials&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;&quot; followed by getAttribute() 
</span><del>-PASS img.crossOrigin: IDL set to &quot;&quot; followed by IDL get 
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to undefined should not throw 
</span><del>-PASS img.crossOrigin: IDL set to undefined followed by getAttribute() 
-FAIL img.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected &quot;&quot; but got &quot;undefined&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;undefined&quot;
+FAIL img.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (string) &quot;undefined&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to 7 should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to 7 followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected &quot;&quot; but got &quot;7&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;7&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to 1.5 should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to 1.5 followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to 1.5 followed by IDL get assert_equals: expected &quot;&quot; but got &quot;1.5&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to 1.5 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;1.5&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to true should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to true followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to true followed by IDL get assert_equals: expected &quot;&quot; but got &quot;true&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to true followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;true&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to false should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to false followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to false followed by IDL get assert_equals: expected &quot;&quot; but got &quot;false&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to false followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;false&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object &quot;[object Object]&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to object &quot;[object Object]&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;[object Object]&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;[object Object]&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to NaN should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to NaN followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to NaN followed by IDL get assert_equals: expected &quot;&quot; but got &quot;NaN&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to NaN followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;NaN&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to Infinity should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to Infinity followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to Infinity followed by IDL get assert_equals: expected &quot;&quot; but got &quot;Infinity&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;Infinity&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to -Infinity should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to -Infinity followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to -Infinity followed by IDL get assert_equals: expected &quot;&quot; but got &quot;-Infinity&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to -Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;-Infinity&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;\0&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;\0&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;\0&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;\0&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to null should not throw 
</span><del>-FAIL img.crossOrigin: IDL set to null followed by IDL get assert_equals: expected &quot;&quot; but got &quot;null&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;null&quot;
+FAIL img.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (object) null but got (string) &quot;null&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object &quot;test-toString&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to object &quot;test-toString&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;test-toString&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;test-toString&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object &quot;test-valueOf&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;test-valueOf&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;test-valueOf&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;anonymous&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;anonymous&quot; followed by getAttribute() 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;anonymous&quot; followed by IDL get 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;xanonymous&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;xanonymous&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot;xanonymous&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;xanonymous&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;xanonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xanonymous&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;anonymous\0&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;anonymous\0&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot;anonymous\0&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;anonymous\0&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;anonymous\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;anonymous\0&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;nonymous&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;nonymous&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot;nonymous&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;nonymous&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;nonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;nonymous&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;ANONYMOUS&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;ANONYMOUS&quot; followed by getAttribute() 
</span><span class="cx"> FAIL img.crossOrigin: IDL set to &quot;ANONYMOUS&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;ANONYMOUS&quot;
</span><span class="lines">@@ -966,13 +967,13 @@
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;use-credentials&quot; followed by IDL get 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;xuse-credentials&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;xuse-credentials&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot;xuse-credentials&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;xuse-credentials&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;xuse-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xuse-credentials&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;use-credentials\0&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;use-credentials\0&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot;use-credentials\0&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;use-credentials\0&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;use-credentials\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;use-credentials\0&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;se-credentials&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;se-credentials&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: IDL set to &quot;se-credentials&quot; followed by IDL get assert_equals: expected &quot;&quot; but got &quot;se-credentials&quot;
</del><ins>+FAIL img.crossOrigin: IDL set to &quot;se-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;se-credentials&quot;
</ins><span class="cx"> PASS img.crossOrigin: IDL set to &quot;USE-CREDENTIALS&quot; should not throw 
</span><span class="cx"> PASS img.crossOrigin: IDL set to &quot;USE-CREDENTIALS&quot; followed by getAttribute() 
</span><span class="cx"> FAIL img.crossOrigin: IDL set to &quot;USE-CREDENTIALS&quot; followed by IDL get assert_equals: expected &quot;use-credentials&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="lines">@@ -9020,8 +9021,8 @@
</span><span class="cx"> PASS video.src: IDL set to object &quot;test-valueOf&quot; should not throw 
</span><span class="cx"> PASS video.src: IDL set to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><span class="cx"> PASS video.src: IDL set to object &quot;test-valueOf&quot; followed by IDL get 
</span><del>-FAIL video.crossOrigin: typeof IDL attribute assert_equals: expected &quot;string&quot; but got &quot;undefined&quot;
-FAIL video.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (string) &quot;&quot; but got (undefined) undefined
</del><ins>+FAIL video.crossOrigin: typeof IDL attribute assert_equals: expected &quot;object&quot; but got &quot;undefined&quot;
+FAIL video.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (undefined) undefined
</ins><span class="cx"> PASS video.crossOrigin: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><span class="cx"> FAIL video.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (undefined) undefined
</span><span class="cx"> PASS video.crossOrigin: setAttribute() to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() 
</span><span class="lines">@@ -9079,8 +9080,8 @@
</span><span class="cx"> FAIL video.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() assert_equals: expected &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL video.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot;
</span><span class="cx"> PASS video.crossOrigin: IDL set to undefined should not throw 
</span><del>-FAIL video.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected &quot;undefined&quot; but got &quot;USE-CREDENTIALS&quot;
-FAIL video.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (undefined) undefined
</del><ins>+FAIL video.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;USE-CREDENTIALS&quot;
+FAIL video.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (undefined) undefined
</ins><span class="cx"> PASS video.crossOrigin: IDL set to 7 should not throw 
</span><span class="cx"> FAIL video.crossOrigin: IDL set to 7 followed by getAttribute() assert_equals: expected &quot;7&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL video.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (number) 7
</span><span class="lines">@@ -9109,7 +9110,8 @@
</span><span class="cx"> FAIL video.crossOrigin: IDL set to &quot;\0&quot; followed by getAttribute() assert_equals: expected &quot;\0&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL video.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;\0&quot;
</span><span class="cx"> PASS video.crossOrigin: IDL set to null should not throw 
</span><del>-FAIL video.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (object) null
</del><ins>+FAIL video.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;USE-CREDENTIALS&quot;
+PASS video.crossOrigin: IDL set to null followed by IDL get 
</ins><span class="cx"> PASS video.crossOrigin: IDL set to object &quot;test-toString&quot; should not throw 
</span><span class="cx"> FAIL video.crossOrigin: IDL set to object &quot;test-toString&quot; followed by getAttribute() assert_equals: expected &quot;test-toString&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL video.crossOrigin: IDL set to object &quot;test-toString&quot; followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (object) object &quot;test-toString&quot;
</span><span class="lines">@@ -10821,8 +10823,8 @@
</span><span class="cx"> PASS audio.src: IDL set to object &quot;test-valueOf&quot; should not throw 
</span><span class="cx"> PASS audio.src: IDL set to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><span class="cx"> PASS audio.src: IDL set to object &quot;test-valueOf&quot; followed by IDL get 
</span><del>-FAIL audio.crossOrigin: typeof IDL attribute assert_equals: expected &quot;string&quot; but got &quot;undefined&quot;
-FAIL audio.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (string) &quot;&quot; but got (undefined) undefined
</del><ins>+FAIL audio.crossOrigin: typeof IDL attribute assert_equals: expected &quot;object&quot; but got &quot;undefined&quot;
+FAIL audio.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (undefined) undefined
</ins><span class="cx"> PASS audio.crossOrigin: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><span class="cx"> FAIL audio.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (undefined) undefined
</span><span class="cx"> PASS audio.crossOrigin: setAttribute() to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() 
</span><span class="lines">@@ -10880,8 +10882,8 @@
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() assert_equals: expected &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot;
</span><span class="cx"> PASS audio.crossOrigin: IDL set to undefined should not throw 
</span><del>-FAIL audio.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected &quot;undefined&quot; but got &quot;USE-CREDENTIALS&quot;
-FAIL audio.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (undefined) undefined
</del><ins>+FAIL audio.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;USE-CREDENTIALS&quot;
+FAIL audio.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (undefined) undefined
</ins><span class="cx"> PASS audio.crossOrigin: IDL set to 7 should not throw 
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to 7 followed by getAttribute() assert_equals: expected &quot;7&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (number) 7
</span><span class="lines">@@ -10910,7 +10912,8 @@
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to &quot;\0&quot; followed by getAttribute() assert_equals: expected &quot;\0&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;\0&quot;
</span><span class="cx"> PASS audio.crossOrigin: IDL set to null should not throw 
</span><del>-FAIL audio.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (object) null
</del><ins>+FAIL audio.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;USE-CREDENTIALS&quot;
+PASS audio.crossOrigin: IDL set to null followed by IDL get 
</ins><span class="cx"> PASS audio.crossOrigin: IDL set to object &quot;test-toString&quot; should not throw 
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to object &quot;test-toString&quot; followed by getAttribute() assert_equals: expected &quot;test-toString&quot; but got &quot;USE-CREDENTIALS&quot;
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to object &quot;test-toString&quot; followed by IDL get assert_equals: expected (string) &quot;anonymous&quot; but got (object) object &quot;test-toString&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionmiscexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -1760,8 +1760,8 @@
</span><span class="cx"> PASS script.defer: IDL set to object &quot;test-valueOf&quot; should not throw 
</span><span class="cx"> PASS script.defer: IDL set to object &quot;test-valueOf&quot; followed by hasAttribute() 
</span><span class="cx"> PASS script.defer: IDL set to object &quot;test-valueOf&quot; followed by IDL get 
</span><del>-PASS script.crossOrigin: typeof IDL attribute 
-PASS script.crossOrigin: IDL get with DOM attribute unset 
</del><ins>+FAIL script.crossOrigin: typeof IDL attribute assert_equals: expected &quot;object&quot; but got &quot;string&quot;
+FAIL script.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (string) &quot;&quot;
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><span class="cx"> FAIL script.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;&quot;
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() 
</span><span class="lines">@@ -1819,8 +1819,8 @@
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by getAttribute() 
</span><span class="cx"> FAIL script.crossOrigin: IDL set to &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot; \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo &quot;
</span><span class="cx"> PASS script.crossOrigin: IDL set to undefined should not throw 
</span><del>-PASS script.crossOrigin: IDL set to undefined followed by getAttribute() 
-FAIL script.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;undefined&quot;
</del><ins>+FAIL script.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;undefined&quot;
+FAIL script.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (string) &quot;undefined&quot;
</ins><span class="cx"> PASS script.crossOrigin: IDL set to 7 should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to 7 followed by getAttribute() 
</span><span class="cx"> FAIL script.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;7&quot;
</span><span class="lines">@@ -1849,7 +1849,8 @@
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;\0&quot; followed by getAttribute() 
</span><span class="cx"> FAIL script.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;\0&quot;
</span><span class="cx"> PASS script.crossOrigin: IDL set to null should not throw 
</span><del>-FAIL script.crossOrigin: IDL set to null followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;null&quot;
</del><ins>+FAIL script.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) &quot;null&quot;
+FAIL script.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (object) null but got (string) &quot;null&quot;
</ins><span class="cx"> PASS script.crossOrigin: IDL set to object &quot;test-toString&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to object &quot;test-toString&quot; followed by getAttribute() 
</span><span class="cx"> FAIL script.crossOrigin: IDL set to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;test-toString&quot;
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionjs"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection.js (196882 => 196883)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection.js        2016-02-22 01:23:07 UTC (rev 196882)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection.js        2016-02-22 01:27:43 UTC (rev 196883)
</span><span class="lines">@@ -271,6 +271,7 @@
</span><span class="cx">      *   &quot;keywords&quot;: array of keywords as given by the spec (required)
</span><span class="cx">      *   &quot;nonCanon&quot;: dictionary mapping non-canonical values to their
</span><span class="cx">      *     canonical equivalents (defaults to {})
</span><ins>+     *   &quot;isNullable&quot;: Indicates if attribute is nullable (defaults to false)
</ins><span class="cx">      *
</span><span class="cx">      * Tests are mostly hardcoded into reflects(), since they depend on the
</span><span class="cx">      * keywords.  All expected values are computed in reflects() using a helper
</span><span class="lines">@@ -592,9 +593,14 @@
</span><span class="cx"> 
</span><span class="cx">     var typeInfo = this.typeMap[data.type];
</span><span class="cx"> 
</span><ins>+    if (typeof data.isNullable == &quot;undefined&quot;) {
+        data.isNullable = false;
+    }
+
</ins><span class="cx">     // Test that typeof idlObj[idlName] is correct.  If not, further tests are
</span><span class="cx">     // probably pointless, so bail out.
</span><del>-    if (!ReflectionHarness.test(typeof idlObj[idlName], typeInfo.jsType, &quot;typeof IDL attribute&quot;)) {
</del><ins>+    var isDefaultValueNull = data.isNullable &amp;&amp; data.defaultVal === null;
+    if (!ReflectionHarness.test(typeof idlObj[idlName], isDefaultValueNull ? &quot;object&quot; : typeInfo.jsType, &quot;typeof IDL attribute&quot;)) {
</ins><span class="cx">         return;
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -603,7 +609,7 @@
</span><span class="cx">     if (defaultVal === undefined) {
</span><span class="cx">         defaultVal = typeInfo.defaultVal;
</span><span class="cx">     }
</span><del>-    if (defaultVal !== null) {
</del><ins>+    if (defaultVal !== null || data.isNullable) {
</ins><span class="cx">         ReflectionHarness.test(idlObj[idlName], defaultVal, &quot;IDL get with DOM attribute unset&quot;);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -650,7 +656,14 @@
</span><span class="cx"> 
</span><span class="cx">         // Per spec, the expected DOM values are the same as the value we set
</span><span class="cx">         // it to.
</span><del>-        idlDomExpected = idlTests.slice(0);
</del><ins>+        if (!data.isNullable) {
+            idlDomExpected = idlTests.slice(0);
+        } else {
+            idlDomExpected = [];
+            for (var i = 0; i &lt; idlTests.length; i++) {
+                idlDomExpected.push((idlTests[i] === null || idlTests[i] === undefined) ? null : idlTests[i]);
+            }
+        }
</ins><span class="cx"> 
</span><span class="cx">         // Now we have the fun of calculating what the expected IDL values are.
</span><span class="cx">         domExpected = [];
</span><span class="lines">@@ -659,7 +672,11 @@
</span><span class="cx">             domExpected.push(this.enumExpected(data.keywords, data.nonCanon, data.invalidVal, domTests[i]));
</span><span class="cx">         }
</span><span class="cx">         for (var i = 0; i &lt; idlTests.length; i++) {
</span><del>-            idlIdlExpected.push(this.enumExpected(data.keywords, data.nonCanon, data.invalidVal, idlTests[i]));
</del><ins>+            if (data.isNullable &amp;&amp; (idlTests[i] === null || idlTests[i] === undefined)) {
+                idlIdlExpected.push(null);
+            } else {
+                idlIdlExpected.push(this.enumExpected(data.keywords, data.nonCanon, data.invalidVal, idlTests[i]));
+            }
</ins><span class="cx">         }
</span><span class="cx">         break;
</span><span class="cx"> 
</span><span class="lines">@@ -687,7 +704,7 @@
</span><span class="cx"> 
</span><span class="cx">     if (!data.customGetter) {
</span><span class="cx">         for (var i = 0; i &lt; domTests.length; i++) {
</span><del>-            if (domExpected[i] === null) {
</del><ins>+            if (domExpected[i] === null &amp;&amp; !data.isNullable) {
</ins><span class="cx">                 // If you follow all the complicated logic here, you'll find that
</span><span class="cx">                 // this will only happen if there's no expected value at all (like
</span><span class="cx">                 // for tabIndex, where the default is too complicated).  So skip
</span><span class="lines">@@ -723,10 +740,14 @@
</span><span class="cx">                 if (data.type == &quot;boolean&quot;) {
</span><span class="cx">                     // Special case yay
</span><span class="cx">                     ReflectionHarness.test(domObj.hasAttribute(domName), Boolean(idlTests[i]), &quot;IDL set to &quot; + ReflectionHarness.stringRep(idlTests[i]) + &quot; followed by hasAttribute()&quot;);
</span><del>-                } else if (idlDomExpected[i] !== null) {
-                    ReflectionHarness.test(domObj.getAttribute(domName), idlDomExpected[i] + &quot;&quot;, &quot;IDL set to &quot; + ReflectionHarness.stringRep(idlTests[i]) + &quot; followed by getAttribute()&quot;);
</del><ins>+                } else if (idlDomExpected[i] !== null || data.isNullable) {
+                    var expected = idlDomExpected[i] + &quot;&quot;;
+                    if (data.isNullable &amp;&amp; idlDomExpected[i] === null) {
+                        expected = null;
+                    }
+                    ReflectionHarness.test(domObj.getAttribute(domName), expected, &quot;IDL set to &quot; + ReflectionHarness.stringRep(idlTests[i]) + &quot; followed by getAttribute()&quot;);
</ins><span class="cx">                 }
</span><del>-                if (idlIdlExpected[i] !== null) {
</del><ins>+                if (idlIdlExpected[i] !== null || data.isNullable) {
</ins><span class="cx">                     ReflectionHarness.test(idlObj[idlName], idlIdlExpected[i], &quot;IDL set to &quot; + ReflectionHarness.stringRep(idlTests[i]) + &quot; followed by IDL get&quot;);
</span><span class="cx">                 }
</span><span class="cx">                 if (ReflectionHarness.catchUnexpectedExceptions) {
</span></span></pre>
</div>
</div>

</body>
</html>