<!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 <cdumez@apple.com>
+
+ 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 <cdumez@apple.com>
</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: "string",
</span><span class="cx"> src: "url",
</span><span class="cx"> srcset: "string",
</span><del>- crossOrigin: {type: "enum", keywords: ["", "anonymous", "use-credentials"]},
</del><ins>+ crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"},
</ins><span class="cx"> useMap: "string",
</span><span class="cx"> isMap: "boolean",
</span><span class="cx"> width: {type: "unsigned long", 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: "url",
</span><del>- crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}},
</del><ins>+ crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"},
</ins><span class="cx"> // As with "keytype", we have no missing value default defined here.
</span><span class="cx"> preload: {type: "enum", keywords: ["none", "metadata", "auto"], nonCanon: {"": "auto"}, defaultVal: null},
</span><span class="cx"> autoplay: "boolean",
</span><span class="lines">@@ -100,7 +100,7 @@
</span><span class="cx"> audio: {
</span><span class="cx"> // HTMLMediaElement
</span><span class="cx"> src: "url",
</span><del>- crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}},
</del><ins>+ crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"},
</ins><span class="cx"> // As with "keytype", we have no missing value default defined here.
</span><span class="cx"> preload: {type: "enum", keywords: ["none", "metadata", "auto"], nonCanon: {"": "auto"}, defaultVal: null},
</span><span class="cx"> autoplay: "boolean",
</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: "string",
</span><span class="cx"> // TODO: async attribute (complicated).
</span><span class="cx"> defer: "boolean",
</span><del>- crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}},
</del><ins>+ crossOrigin: {type: "enum", keywords: ["anonymous", "use-credentials"], nonCanon:{"": "anonymous"}, isNullable: true, defaultVal: null, invalidVal: "anonymous"},
</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, "", 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 "region" expected true got false
</span><span class="cx"> FAIL Touch interface: attribute region assert_own_property: self does not have own property "Touch" expected property "Touch" missing
</span><del>-FAIL HTMLAllCollection interface: existence and properties of interface object assert_equals: prototype of HTMLAllCollection is not HTMLCollection expected function "function HTMLCollection() {
- [native code]
-}" but got function "function () {
- [native code]
-}"
</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 "[object HTMLCollectionPrototype]" but got object "[object Object]"
</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 "constructor" 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 "function" but got "undefined"
</span><span class="cx"> FAIL Stringification of document.all assert_equals: wrong typeof object expected "function" but got "undefined"
</span><del>-FAIL HTMLAllCollection interface: document.all must inherit property "item" with the proper type (0) assert_equals: wrong typeof object expected "function" but got "undefined"
-FAIL HTMLAllCollection interface: calling item(unsigned long) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected "function" but got "undefined"
</del><ins>+FAIL HTMLAllCollection interface: document.all must inherit property "length" with the proper type (0) assert_equals: wrong typeof object expected "function" but got "undefined"
</ins><span class="cx"> FAIL HTMLAllCollection interface: document.all must inherit property "item" with the proper type (1) assert_equals: wrong typeof object expected "function" but got "undefined"
</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 "function" but got "undefined"
+FAIL HTMLAllCollection interface: document.all must inherit property "item" with the proper type (2) assert_equals: wrong typeof object expected "function" but got "undefined"
</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 "function" but got "undefined"
</span><del>-FAIL HTMLAllCollection interface: document.all must inherit property "namedItem" with the proper type (2) assert_equals: wrong typeof object expected "function" but got "undefined"
</del><ins>+FAIL HTMLAllCollection interface: document.all must inherit property "namedItem" with the proper type (3) assert_equals: wrong typeof object expected "function" but got "undefined"
</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 "function" but got "undefined"
</span><del>-FAIL HTMLCollection interface: document.all must inherit property "length" with the proper type (0) assert_equals: wrong typeof object expected "function" but got "undefined"
-FAIL HTMLCollection interface: document.all must inherit property "item" with the proper type (1) assert_equals: wrong typeof object expected "function" but got "undefined"
-FAIL HTMLCollection interface: calling item(unsigned long) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected "function" but got "undefined"
-FAIL HTMLCollection interface: document.all must inherit property "namedItem" with the proper type (2) assert_equals: wrong typeof object expected "function" but got "undefined"
-FAIL HTMLCollection interface: calling namedItem(DOMString) on document.all with too few arguments must throw TypeError assert_equals: wrong typeof object expected "function" but got "undefined"
</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 "function" but got "undefined"
</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 "username" expected true got false
</span><span class="cx"> FAIL HTMLAnchorElement interface: attribute password assert_true: The prototype object must have a property "password" 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 "test-valueOf" should not throw
</span><span class="cx"> PASS img.srcset: IDL set to object "test-valueOf" followed by getAttribute()
</span><span class="cx"> PASS img.srcset: IDL set to object "test-valueOf" 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 "object" but got "string"
+FAIL img.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (string) ""
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "" followed by getAttribute()
</span><del>-PASS img.crossOrigin: setAttribute() to "" followed by IDL get
</del><ins>+FAIL img.crossOrigin: setAttribute() to "" followed by IDL get assert_equals: expected "anonymous" but got ""
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to " \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 " followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to " \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 " followed by IDL get assert_equals: expected "" but got " \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 "
</del><ins>+FAIL img.crossOrigin: setAttribute() to " \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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</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 "" but got "undefined"
</del><ins>+FAIL img.crossOrigin: setAttribute() to undefined followed by IDL get assert_equals: expected "anonymous" but got "undefined"
</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 "" but got "7"
</del><ins>+FAIL img.crossOrigin: setAttribute() to 7 followed by IDL get assert_equals: expected "anonymous" but got "7"
</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 "" but got "1.5"
</del><ins>+FAIL img.crossOrigin: setAttribute() to 1.5 followed by IDL get assert_equals: expected "anonymous" but got "1.5"
</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 "" but got "true"
</del><ins>+FAIL img.crossOrigin: setAttribute() to true followed by IDL get assert_equals: expected "anonymous" but got "true"
</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 "" but got "false"
</del><ins>+FAIL img.crossOrigin: setAttribute() to false followed by IDL get assert_equals: expected "anonymous" but got "false"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object "[object Object]" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "" but got "[object Object]"
</del><ins>+FAIL img.crossOrigin: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "anonymous" but got "[object Object]"
</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 "" but got "NaN"
</del><ins>+FAIL img.crossOrigin: setAttribute() to NaN followed by IDL get assert_equals: expected "anonymous" but got "NaN"
</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 "" but got "Infinity"
</del><ins>+FAIL img.crossOrigin: setAttribute() to Infinity followed by IDL get assert_equals: expected "anonymous" but got "Infinity"
</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 "" but got "-Infinity"
</del><ins>+FAIL img.crossOrigin: setAttribute() to -Infinity followed by IDL get assert_equals: expected "anonymous" but got "-Infinity"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "\0" followed by IDL get assert_equals: expected "" but got "\0"
</del><ins>+FAIL img.crossOrigin: setAttribute() to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</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 "" but got "null"
</del><ins>+FAIL img.crossOrigin: setAttribute() to null followed by IDL get assert_equals: expected "anonymous" but got "null"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object "test-toString" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "" but got "test-toString"
</del><ins>+FAIL img.crossOrigin: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "anonymous" but got "test-toString"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "" but got "test-valueOf"
</del><ins>+FAIL img.crossOrigin: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "anonymous" but got "test-valueOf"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "anonymous" followed by getAttribute()
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "anonymous" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "xanonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "xanonymous" followed by IDL get assert_equals: expected "" but got "xanonymous"
</del><ins>+FAIL img.crossOrigin: setAttribute() to "xanonymous" followed by IDL get assert_equals: expected "anonymous" but got "xanonymous"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "anonymous\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "anonymous\0" followed by IDL get assert_equals: expected "" but got "anonymous\0"
</del><ins>+FAIL img.crossOrigin: setAttribute() to "anonymous\0" followed by IDL get assert_equals: expected "anonymous" but got "anonymous\0"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "nonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "nonymous" followed by IDL get assert_equals: expected "" but got "nonymous"
</del><ins>+FAIL img.crossOrigin: setAttribute() to "nonymous" followed by IDL get assert_equals: expected "anonymous" but got "nonymous"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "ANONYMOUS" followed by getAttribute()
</span><span class="cx"> FAIL img.crossOrigin: setAttribute() to "ANONYMOUS" followed by IDL get assert_equals: expected "anonymous" but got "ANONYMOUS"
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "use-credentials" followed by getAttribute()
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "use-credentials" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "xuse-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "xuse-credentials" followed by IDL get assert_equals: expected "" but got "xuse-credentials"
</del><ins>+FAIL img.crossOrigin: setAttribute() to "xuse-credentials" followed by IDL get assert_equals: expected "anonymous" but got "xuse-credentials"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "use-credentials\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "use-credentials\0" followed by IDL get assert_equals: expected "" but got "use-credentials\0"
</del><ins>+FAIL img.crossOrigin: setAttribute() to "use-credentials\0" followed by IDL get assert_equals: expected "anonymous" but got "use-credentials\0"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "se-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "se-credentials" followed by IDL get assert_equals: expected "" but got "se-credentials"
</del><ins>+FAIL img.crossOrigin: setAttribute() to "se-credentials" followed by IDL get assert_equals: expected "anonymous" but got "se-credentials"
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by getAttribute()
</span><span class="cx"> FAIL img.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by IDL get assert_equals: expected "use-credentials" but got "USE-CREDENTIALS"
</span><span class="cx"> PASS img.crossOrigin: IDL set to "" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "" followed by getAttribute()
</span><del>-PASS img.crossOrigin: IDL set to "" followed by IDL get
</del><ins>+FAIL img.crossOrigin: IDL set to "" followed by IDL get assert_equals: expected "anonymous" but got ""
</ins><span class="cx"> PASS img.crossOrigin: IDL set to " \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 " should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to " \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 " followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to " \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 " followed by IDL get assert_equals: expected "" but got " \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 "
</del><ins>+FAIL img.crossOrigin: IDL set to " \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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</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 "" but got "undefined"
</del><ins>+FAIL img.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) "undefined"
+FAIL img.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (string) "undefined"
</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 "" but got "7"
</del><ins>+FAIL img.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected "anonymous" but got "7"
</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 "" but got "1.5"
</del><ins>+FAIL img.crossOrigin: IDL set to 1.5 followed by IDL get assert_equals: expected "anonymous" but got "1.5"
</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 "" but got "true"
</del><ins>+FAIL img.crossOrigin: IDL set to true followed by IDL get assert_equals: expected "anonymous" but got "true"
</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 "" but got "false"
</del><ins>+FAIL img.crossOrigin: IDL set to false followed by IDL get assert_equals: expected "anonymous" but got "false"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object "[object Object]" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to object "[object Object]" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "" but got "[object Object]"
</del><ins>+FAIL img.crossOrigin: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "anonymous" but got "[object Object]"
</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 "" but got "NaN"
</del><ins>+FAIL img.crossOrigin: IDL set to NaN followed by IDL get assert_equals: expected "anonymous" but got "NaN"
</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 "" but got "Infinity"
</del><ins>+FAIL img.crossOrigin: IDL set to Infinity followed by IDL get assert_equals: expected "anonymous" but got "Infinity"
</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 "" but got "-Infinity"
</del><ins>+FAIL img.crossOrigin: IDL set to -Infinity followed by IDL get assert_equals: expected "anonymous" but got "-Infinity"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "\0" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "\0" followed by IDL get assert_equals: expected "" but got "\0"
</del><ins>+FAIL img.crossOrigin: IDL set to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</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 "" but got "null"
</del><ins>+FAIL img.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) "null"
+FAIL img.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (object) null but got (string) "null"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object "test-toString" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to object "test-toString" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to object "test-toString" followed by IDL get assert_equals: expected "" but got "test-toString"
</del><ins>+FAIL img.crossOrigin: IDL set to object "test-toString" followed by IDL get assert_equals: expected "anonymous" but got "test-toString"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "" but got "test-valueOf"
</del><ins>+FAIL img.crossOrigin: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "anonymous" but got "test-valueOf"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous" followed by getAttribute()
</span><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xanonymous" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xanonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "xanonymous" followed by IDL get assert_equals: expected "" but got "xanonymous"
</del><ins>+FAIL img.crossOrigin: IDL set to "xanonymous" followed by IDL get assert_equals: expected "anonymous" but got "xanonymous"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous\0" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "anonymous\0" followed by IDL get assert_equals: expected "" but got "anonymous\0"
</del><ins>+FAIL img.crossOrigin: IDL set to "anonymous\0" followed by IDL get assert_equals: expected "anonymous" but got "anonymous\0"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "nonymous" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "nonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "nonymous" followed by IDL get assert_equals: expected "" but got "nonymous"
</del><ins>+FAIL img.crossOrigin: IDL set to "nonymous" followed by IDL get assert_equals: expected "anonymous" but got "nonymous"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "ANONYMOUS" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "ANONYMOUS" followed by getAttribute()
</span><span class="cx"> FAIL img.crossOrigin: IDL set to "ANONYMOUS" followed by IDL get assert_equals: expected "anonymous" but got "ANONYMOUS"
</span><span class="lines">@@ -966,13 +967,13 @@
</span><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xuse-credentials" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xuse-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "xuse-credentials" followed by IDL get assert_equals: expected "" but got "xuse-credentials"
</del><ins>+FAIL img.crossOrigin: IDL set to "xuse-credentials" followed by IDL get assert_equals: expected "anonymous" but got "xuse-credentials"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials\0" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "use-credentials\0" followed by IDL get assert_equals: expected "" but got "use-credentials\0"
</del><ins>+FAIL img.crossOrigin: IDL set to "use-credentials\0" followed by IDL get assert_equals: expected "anonymous" but got "use-credentials\0"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "se-credentials" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "se-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "se-credentials" followed by IDL get assert_equals: expected "" but got "se-credentials"
</del><ins>+FAIL img.crossOrigin: IDL set to "se-credentials" followed by IDL get assert_equals: expected "anonymous" but got "se-credentials"
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "USE-CREDENTIALS" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "USE-CREDENTIALS" followed by getAttribute()
</span><span class="cx"> FAIL img.crossOrigin: IDL set to "USE-CREDENTIALS" followed by IDL get assert_equals: expected "use-credentials" but got "USE-CREDENTIALS"
</span><span class="lines">@@ -9020,8 +9021,8 @@
</span><span class="cx"> PASS video.src: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS video.src: IDL set to object "test-valueOf" followed by getAttribute()
</span><span class="cx"> PASS video.src: IDL set to object "test-valueOf" followed by IDL get
</span><del>-FAIL video.crossOrigin: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL video.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
</del><ins>+FAIL video.crossOrigin: typeof IDL attribute assert_equals: expected "object" but got "undefined"
+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 "" followed by getAttribute()
</span><span class="cx"> FAIL video.crossOrigin: setAttribute() to "" followed by IDL get assert_equals: expected (string) "anonymous" but got (undefined) undefined
</span><span class="cx"> PASS video.crossOrigin: setAttribute() to " \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 " followed by getAttribute()
</span><span class="lines">@@ -9079,8 +9080,8 @@
</span><span class="cx"> FAIL video.crossOrigin: IDL set to " \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 " followed by getAttribute() assert_equals: expected " \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 " but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL video.crossOrigin: IDL set to " \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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</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 "undefined" but got "USE-CREDENTIALS"
-FAIL video.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (string) "anonymous" but got (undefined) undefined
</del><ins>+FAIL video.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) "USE-CREDENTIALS"
+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 "7" but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL video.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected (string) "anonymous" but got (number) 7
</span><span class="lines">@@ -9109,7 +9110,8 @@
</span><span class="cx"> FAIL video.crossOrigin: IDL set to "\0" followed by getAttribute() assert_equals: expected "\0" but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL video.crossOrigin: IDL set to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</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) "anonymous" but got (object) null
</del><ins>+FAIL video.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) "USE-CREDENTIALS"
+PASS video.crossOrigin: IDL set to null followed by IDL get
</ins><span class="cx"> PASS video.crossOrigin: IDL set to object "test-toString" should not throw
</span><span class="cx"> FAIL video.crossOrigin: IDL set to object "test-toString" followed by getAttribute() assert_equals: expected "test-toString" but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL video.crossOrigin: IDL set to object "test-toString" followed by IDL get assert_equals: expected (string) "anonymous" but got (object) object "test-toString"
</span><span class="lines">@@ -10821,8 +10823,8 @@
</span><span class="cx"> PASS audio.src: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS audio.src: IDL set to object "test-valueOf" followed by getAttribute()
</span><span class="cx"> PASS audio.src: IDL set to object "test-valueOf" followed by IDL get
</span><del>-FAIL audio.crossOrigin: typeof IDL attribute assert_equals: expected "string" but got "undefined"
-FAIL audio.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
</del><ins>+FAIL audio.crossOrigin: typeof IDL attribute assert_equals: expected "object" but got "undefined"
+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 "" followed by getAttribute()
</span><span class="cx"> FAIL audio.crossOrigin: setAttribute() to "" followed by IDL get assert_equals: expected (string) "anonymous" but got (undefined) undefined
</span><span class="cx"> PASS audio.crossOrigin: setAttribute() to " \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 " followed by getAttribute()
</span><span class="lines">@@ -10880,8 +10882,8 @@
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to " \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 " followed by getAttribute() assert_equals: expected " \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 " but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to " \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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</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 "undefined" but got "USE-CREDENTIALS"
-FAIL audio.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (string) "anonymous" but got (undefined) undefined
</del><ins>+FAIL audio.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) "USE-CREDENTIALS"
+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 "7" but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected (string) "anonymous" but got (number) 7
</span><span class="lines">@@ -10910,7 +10912,8 @@
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to "\0" followed by getAttribute() assert_equals: expected "\0" but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</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) "anonymous" but got (object) null
</del><ins>+FAIL audio.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) "USE-CREDENTIALS"
+PASS audio.crossOrigin: IDL set to null followed by IDL get
</ins><span class="cx"> PASS audio.crossOrigin: IDL set to object "test-toString" should not throw
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to object "test-toString" followed by getAttribute() assert_equals: expected "test-toString" but got "USE-CREDENTIALS"
</span><span class="cx"> FAIL audio.crossOrigin: IDL set to object "test-toString" followed by IDL get assert_equals: expected (string) "anonymous" but got (object) object "test-toString"
</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 "test-valueOf" should not throw
</span><span class="cx"> PASS script.defer: IDL set to object "test-valueOf" followed by hasAttribute()
</span><span class="cx"> PASS script.defer: IDL set to object "test-valueOf" 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 "object" but got "string"
+FAIL script.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (string) ""
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "" followed by getAttribute()
</span><span class="cx"> FAIL script.crossOrigin: setAttribute() to "" followed by IDL get assert_equals: expected "anonymous" but got ""
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to " \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 " followed by getAttribute()
</span><span class="lines">@@ -1819,8 +1819,8 @@
</span><span class="cx"> PASS script.crossOrigin: IDL set to " \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 " followed by getAttribute()
</span><span class="cx"> FAIL script.crossOrigin: IDL set to " \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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</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 "anonymous" but got "undefined"
</del><ins>+FAIL script.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) "undefined"
+FAIL script.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (string) "undefined"
</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 "anonymous" but got "7"
</span><span class="lines">@@ -1849,7 +1849,8 @@
</span><span class="cx"> PASS script.crossOrigin: IDL set to "\0" followed by getAttribute()
</span><span class="cx"> FAIL script.crossOrigin: IDL set to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</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 "anonymous" but got "null"
</del><ins>+FAIL script.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) "null"
+FAIL script.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (object) null but got (string) "null"
</ins><span class="cx"> PASS script.crossOrigin: IDL set to object "test-toString" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to object "test-toString" followed by getAttribute()
</span><span class="cx"> FAIL script.crossOrigin: IDL set to object "test-toString" followed by IDL get assert_equals: expected "anonymous" but got "test-toString"
</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"> * "keywords": array of keywords as given by the spec (required)
</span><span class="cx"> * "nonCanon": dictionary mapping non-canonical values to their
</span><span class="cx"> * canonical equivalents (defaults to {})
</span><ins>+ * "isNullable": 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 == "undefined") {
+ 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, "typeof IDL attribute")) {
</del><ins>+ var isDefaultValueNull = data.isNullable && data.defaultVal === null;
+ if (!ReflectionHarness.test(typeof idlObj[idlName], isDefaultValueNull ? "object" : typeInfo.jsType, "typeof IDL attribute")) {
</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, "IDL get with DOM attribute unset");
</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 < 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 < idlTests.length; i++) {
</span><del>- idlIdlExpected.push(this.enumExpected(data.keywords, data.nonCanon, data.invalidVal, idlTests[i]));
</del><ins>+ if (data.isNullable && (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 < domTests.length; i++) {
</span><del>- if (domExpected[i] === null) {
</del><ins>+ if (domExpected[i] === null && !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 == "boolean") {
</span><span class="cx"> // Special case yay
</span><span class="cx"> ReflectionHarness.test(domObj.hasAttribute(domName), Boolean(idlTests[i]), "IDL set to " + ReflectionHarness.stringRep(idlTests[i]) + " followed by hasAttribute()");
</span><del>- } else if (idlDomExpected[i] !== null) {
- ReflectionHarness.test(domObj.getAttribute(domName), idlDomExpected[i] + "", "IDL set to " + ReflectionHarness.stringRep(idlTests[i]) + " followed by getAttribute()");
</del><ins>+ } else if (idlDomExpected[i] !== null || data.isNullable) {
+ var expected = idlDomExpected[i] + "";
+ if (data.isNullable && idlDomExpected[i] === null) {
+ expected = null;
+ }
+ ReflectionHarness.test(domObj.getAttribute(domName), expected, "IDL set to " + ReflectionHarness.stringRep(idlTests[i]) + " followed by getAttribute()");
</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], "IDL set to " + ReflectionHarness.stringRep(idlTests[i]) + " followed by IDL get");
</span><span class="cx"> }
</span><span class="cx"> if (ReflectionHarness.catchUnexpectedExceptions) {
</span></span></pre>
</div>
</div>
</body>
</html>