<!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>[196894] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196894">196894</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-02-21 22:28:42 -0800 (Sun, 21 Feb 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only return known values
https://bugs.webkit.org/show_bug.cgi?id=154502

Reviewed by Darin Adler.

LayoutTests/imported/w3c:

Rebaseline now that more checks are passing.

* web-platform-tests/html/dom/interfaces-expected.txt:
* web-platform-tests/html/dom/reflection-embedded-expected.txt:
* web-platform-tests/html/dom/reflection-misc-expected.txt:

Source/WebCore:

HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only
return known values and should be nullable as per the specification:
- https://html.spec.whatwg.org/multipage/scripting.html#attr-script-crossorigin
- https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin
- https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-attribute

This aligns our behavior with the HTML specification and Firefox.

No new tests, already covered by existing tests.

* bindings/scripts/CodeGeneratorJS.pm:
Add support for nullable DOMString attributes. If such attribute is
marked as nullable:
- A null string is passed to the implementation if the setter is called
  with null/undefined.
- null is returned to the Javascript if the getter implementation
  returns a null string.

* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:
* bindings/scripts/test/JS/JSTestObj.cpp:
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.mm:
* bindings/scripts/test/TestObj.idl:
Add test coverage for nullable DOMString attributes
and rebaseline bindings tests.

* html/HTMLImageElement.cpp:
* html/HTMLImageElement.h:
* html/HTMLImageElement.idl:
* html/HTMLScriptElement.cpp:
* html/HTMLScriptElement.h:
* html/HTMLScriptElement.idl:
* html/parser/HTMLParserIdioms.cpp:
* html/parser/HTMLParserIdioms.h:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</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="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjh">trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMTestObjh">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMTestObjmm">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestTestObjidl">trunk/Source/WebCore/bindings/scripts/test/TestObj.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageElementcpp">trunk/Source/WebCore/html/HTMLImageElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageElementh">trunk/Source/WebCore/html/HTMLImageElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageElementidl">trunk/Source/WebCore/html/HTMLImageElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLScriptElementcpp">trunk/Source/WebCore/html/HTMLScriptElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLScriptElementh">trunk/Source/WebCore/html/HTMLScriptElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLScriptElementidl">trunk/Source/WebCore/html/HTMLScriptElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLParserIdiomscpp">trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLParserIdiomsh">trunk/Source/WebCore/html/parser/HTMLParserIdioms.h</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1,5 +1,18 @@
</span><span class="cx"> 2016-02-21  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only return known values
+        https://bugs.webkit.org/show_bug.cgi?id=154502
+
+        Reviewed by Darin Adler.
+
+        Rebaseline now that more checks are passing.
+
+        * web-platform-tests/html/dom/interfaces-expected.txt:
+        * web-platform-tests/html/dom/reflection-embedded-expected.txt:
+        * web-platform-tests/html/dom/reflection-misc-expected.txt:
+
+2016-02-21  Chris Dumez  &lt;cdumez@apple.com&gt;
+
</ins><span class="cx">         Make HTMLSelectElement.size behave as per the specification
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=154504
</span><span class="cx"> 
</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 (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -850,133 +850,133 @@
</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>-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;
</del><ins>+PASS img.crossOrigin: typeof IDL attribute 
+PASS img.crossOrigin: IDL get with DOM attribute unset 
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get 
</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;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;
</del><ins>+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 IDL get 
</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;anonymous&quot; but got &quot;undefined&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to undefined followed by IDL get 
</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;anonymous&quot; but got &quot;7&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to 7 followed by IDL get 
</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;anonymous&quot; but got &quot;1.5&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to 1.5 followed by IDL get 
</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;anonymous&quot; but got &quot;true&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to true followed by IDL get 
</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;anonymous&quot; but got &quot;false&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to false followed by IDL get 
</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;anonymous&quot; but got &quot;[object Object]&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to object &quot;[object Object]&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;NaN&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to NaN followed by IDL get 
</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;anonymous&quot; but got &quot;Infinity&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to Infinity followed by IDL get 
</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;anonymous&quot; but got &quot;-Infinity&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to -Infinity followed by IDL get 
</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;anonymous&quot; but got &quot;\0&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;\0&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;null&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to null followed by IDL get 
</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;anonymous&quot; but got &quot;test-toString&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to object &quot;test-toString&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;test-valueOf&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;xanonymous&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;xanonymous&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;anonymous\0&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;anonymous\0&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;nonymous&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;nonymous&quot; followed by IDL get 
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by getAttribute() 
</span><del>-FAIL img.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;ANONYMOUS&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by IDL get 
</ins><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;anonymous&quot; but got &quot;xuse-credentials&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;xuse-credentials&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;use-credentials\0&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;use-credentials\0&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;se-credentials&quot;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;se-credentials&quot; followed by IDL get 
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to &quot;USE-CREDENTIALS&quot; followed by getAttribute() 
</span><del>-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;
</del><ins>+PASS img.crossOrigin: setAttribute() to &quot;USE-CREDENTIALS&quot; followed by IDL get 
</ins><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>-FAIL img.crossOrigin: IDL set to &quot;&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;&quot; followed by IDL get 
</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;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;
</del><ins>+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 IDL get 
</ins><span class="cx"> PASS img.crossOrigin: IDL set to undefined should not throw 
</span><del>-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;
</del><ins>+PASS img.crossOrigin: IDL set to undefined followed by getAttribute() 
+PASS img.crossOrigin: IDL set to undefined followed by IDL get 
</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;anonymous&quot; but got &quot;7&quot;
</del><ins>+PASS img.crossOrigin: IDL set to 7 followed by IDL get 
</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;anonymous&quot; but got &quot;1.5&quot;
</del><ins>+PASS img.crossOrigin: IDL set to 1.5 followed by IDL get 
</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;anonymous&quot; but got &quot;true&quot;
</del><ins>+PASS img.crossOrigin: IDL set to true followed by IDL get 
</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;anonymous&quot; but got &quot;false&quot;
</del><ins>+PASS img.crossOrigin: IDL set to false followed by IDL get 
</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;anonymous&quot; but got &quot;[object Object]&quot;
</del><ins>+PASS img.crossOrigin: IDL set to object &quot;[object Object]&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;NaN&quot;
</del><ins>+PASS img.crossOrigin: IDL set to NaN followed by IDL get 
</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;anonymous&quot; but got &quot;Infinity&quot;
</del><ins>+PASS img.crossOrigin: IDL set to Infinity followed by IDL get 
</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;anonymous&quot; but got &quot;-Infinity&quot;
</del><ins>+PASS img.crossOrigin: IDL set to -Infinity followed by IDL get 
</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;anonymous&quot; but got &quot;\0&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get 
</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 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;
</del><ins>+PASS img.crossOrigin: IDL set to null followed by getAttribute() 
+PASS img.crossOrigin: IDL set to null followed by IDL get 
</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;anonymous&quot; but got &quot;test-toString&quot;
</del><ins>+PASS img.crossOrigin: IDL set to object &quot;test-toString&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;test-valueOf&quot;
</del><ins>+PASS img.crossOrigin: IDL set to object &quot;test-valueOf&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;xanonymous&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;xanonymous&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;anonymous\0&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;anonymous\0&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;nonymous&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;nonymous&quot; followed by IDL get 
</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><del>-FAIL img.crossOrigin: IDL set to &quot;ANONYMOUS&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;ANONYMOUS&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;ANONYMOUS&quot; followed by IDL get 
</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"> 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;anonymous&quot; but got &quot;xuse-credentials&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;xuse-credentials&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;use-credentials\0&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;use-credentials\0&quot; followed by IDL get 
</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;anonymous&quot; but got &quot;se-credentials&quot;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;se-credentials&quot; followed by IDL get 
</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><del>-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;
</del><ins>+PASS img.crossOrigin: IDL set to &quot;USE-CREDENTIALS&quot; followed by IDL get 
</ins><span class="cx"> PASS img.useMap: typeof IDL attribute 
</span><span class="cx"> PASS img.useMap: IDL get with DOM attribute unset 
</span><span class="cx"> PASS img.useMap: setAttribute() to &quot;&quot; followed by getAttribute() 
</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 (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1760,133 +1760,133 @@
</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>-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;
</del><ins>+PASS script.crossOrigin: typeof IDL attribute 
+PASS script.crossOrigin: IDL get with DOM attribute unset 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;&quot; followed by IDL get 
</ins><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><del>-FAIL 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 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;
</del><ins>+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 IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to undefined followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to undefined followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;undefined&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to undefined followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to 7 followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to 7 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;7&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to 7 followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to 1.5 followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to 1.5 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;1.5&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to 1.5 followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to true followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to true followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;true&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to true followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to false followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to false followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;false&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to false followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to object &quot;[object Object]&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;[object Object]&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to object &quot;[object Object]&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to NaN followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to NaN followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;NaN&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to NaN followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to Infinity followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;Infinity&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to Infinity followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to -Infinity followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to -Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;-Infinity&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to -Infinity followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;\0&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;\0&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;\0&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to null followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to null followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;null&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to null followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to object &quot;test-toString&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;test-toString&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to object &quot;test-toString&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;test-valueOf&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;anonymous&quot; followed by getAttribute() 
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;anonymous&quot; followed by IDL get 
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;xanonymous&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;xanonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xanonymous&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;xanonymous&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;anonymous\0&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;anonymous\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;anonymous\0&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;anonymous\0&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;nonymous&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;nonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;nonymous&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;nonymous&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;ANONYMOUS&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;ANONYMOUS&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;use-credentials&quot; followed by getAttribute() 
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;use-credentials&quot; followed by IDL get 
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;xuse-credentials&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;xuse-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xuse-credentials&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;xuse-credentials&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;use-credentials\0&quot; followed by getAttribute() 
</span><del>-FAIL script.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;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;use-credentials\0&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;se-credentials&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;se-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;se-credentials&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;se-credentials&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to &quot;USE-CREDENTIALS&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: setAttribute() to &quot;USE-CREDENTIALS&quot; followed by IDL get assert_equals: expected &quot;use-credentials&quot; but got &quot;USE-CREDENTIALS&quot;
</del><ins>+PASS script.crossOrigin: setAttribute() to &quot;USE-CREDENTIALS&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;&quot; followed by IDL get 
</ins><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; should not throw 
</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><del>-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;
</del><ins>+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 IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to undefined should not throw 
</span><del>-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;
</del><ins>+PASS script.crossOrigin: IDL set to undefined followed by getAttribute() 
+PASS script.crossOrigin: IDL set to undefined followed by IDL get 
</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><del>-FAIL script.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;7&quot;
</del><ins>+PASS script.crossOrigin: IDL set to 7 followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to 1.5 should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to 1.5 followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to 1.5 followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;1.5&quot;
</del><ins>+PASS script.crossOrigin: IDL set to 1.5 followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to true should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to true followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to true followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;true&quot;
</del><ins>+PASS script.crossOrigin: IDL set to true followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to false should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to false followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to false followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;false&quot;
</del><ins>+PASS script.crossOrigin: IDL set to false followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to object &quot;[object Object]&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to object &quot;[object Object]&quot; followed by getAttribute() 
</span><del>-FAIL script.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;
</del><ins>+PASS script.crossOrigin: IDL set to object &quot;[object Object]&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to NaN should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to NaN followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to NaN followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;NaN&quot;
</del><ins>+PASS script.crossOrigin: IDL set to NaN followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to Infinity should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to Infinity followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;Infinity&quot;
</del><ins>+PASS script.crossOrigin: IDL set to Infinity followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to -Infinity should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to -Infinity followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to -Infinity followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;-Infinity&quot;
</del><ins>+PASS script.crossOrigin: IDL set to -Infinity followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;\0&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;\0&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;\0&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;\0&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to null should not throw 
</span><del>-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;
</del><ins>+PASS script.crossOrigin: IDL set to null followed by getAttribute() 
+PASS script.crossOrigin: IDL set to null followed by IDL get 
</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><del>-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;
</del><ins>+PASS script.crossOrigin: IDL set to object &quot;test-toString&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to object &quot;test-valueOf&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><del>-FAIL script.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;
</del><ins>+PASS script.crossOrigin: IDL set to object &quot;test-valueOf&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;anonymous&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;anonymous&quot; followed by getAttribute() 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;anonymous&quot; followed by IDL get 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;xanonymous&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;xanonymous&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;xanonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xanonymous&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;xanonymous&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;anonymous\0&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;anonymous\0&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;anonymous\0&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;anonymous\0&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;anonymous\0&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;nonymous&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;nonymous&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;nonymous&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;nonymous&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;nonymous&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;ANONYMOUS&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;ANONYMOUS&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;ANONYMOUS&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;ANONYMOUS&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;ANONYMOUS&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;use-credentials&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;use-credentials&quot; followed by getAttribute() 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;use-credentials&quot; followed by IDL get 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;xuse-credentials&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;xuse-credentials&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;xuse-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;xuse-credentials&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;xuse-credentials&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;use-credentials\0&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;use-credentials\0&quot; followed by getAttribute() 
</span><del>-FAIL script.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;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;use-credentials\0&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;se-credentials&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;se-credentials&quot; followed by getAttribute() 
</span><del>-FAIL script.crossOrigin: IDL set to &quot;se-credentials&quot; followed by IDL get assert_equals: expected &quot;anonymous&quot; but got &quot;se-credentials&quot;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;se-credentials&quot; followed by IDL get 
</ins><span class="cx"> PASS script.crossOrigin: IDL set to &quot;USE-CREDENTIALS&quot; should not throw 
</span><span class="cx"> PASS script.crossOrigin: IDL set to &quot;USE-CREDENTIALS&quot; followed by getAttribute() 
</span><del>-FAIL script.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;
</del><ins>+PASS script.crossOrigin: IDL set to &quot;USE-CREDENTIALS&quot; followed by IDL get 
</ins><span class="cx"> FAIL script.itemScope: typeof IDL attribute assert_equals: expected &quot;boolean&quot; but got &quot;undefined&quot;
</span><span class="cx"> FAIL script.itemScope: IDL get with DOM attribute unset assert_equals: expected (boolean) false but got (undefined) undefined
</span><span class="cx"> PASS script.itemScope: setAttribute() to &quot;&quot; followed by getAttribute() 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/ChangeLog        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1,5 +1,48 @@
</span><span class="cx"> 2016-02-21  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only return known values
+        https://bugs.webkit.org/show_bug.cgi?id=154502
+
+        Reviewed by Darin Adler.
+
+        HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only
+        return known values and should be nullable as per the specification:
+        - https://html.spec.whatwg.org/multipage/scripting.html#attr-script-crossorigin
+        - https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin
+        - https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-attribute
+
+        This aligns our behavior with the HTML specification and Firefox.
+
+        No new tests, already covered by existing tests.
+
+        * bindings/scripts/CodeGeneratorJS.pm:
+        Add support for nullable DOMString attributes. If such attribute is
+        marked as nullable:
+        - A null string is passed to the implementation if the setter is called
+          with null/undefined.
+        - null is returned to the Javascript if the getter implementation
+          returns a null string.
+
+        * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
+        * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
+        * bindings/scripts/test/JS/JSTestObj.cpp:
+        * bindings/scripts/test/ObjC/DOMTestObj.h:
+        * bindings/scripts/test/ObjC/DOMTestObj.mm:
+        * bindings/scripts/test/TestObj.idl:
+        Add test coverage for nullable DOMString attributes
+        and rebaseline bindings tests.
+
+        * html/HTMLImageElement.cpp:
+        * html/HTMLImageElement.h:
+        * html/HTMLImageElement.idl:
+        * html/HTMLScriptElement.cpp:
+        * html/HTMLScriptElement.h:
+        * html/HTMLScriptElement.idl:
+        * html/parser/HTMLParserIdioms.cpp:
+        * html/parser/HTMLParserIdioms.h:
+
+2016-02-21  Chris Dumez  &lt;cdumez@apple.com&gt;
+
</ins><span class="cx">         Make HTMLSelectElement.size behave as per the specification
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=154504
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -4075,6 +4075,9 @@
</span><span class="cx">         if ($signature-&gt;extendedAttributes-&gt;{&quot;TreatNullAs&quot;} and $signature-&gt;extendedAttributes-&gt;{&quot;TreatNullAs&quot;} eq &quot;NullString&quot;) {
</span><span class="cx">             return &quot;valueToStringWithNullCheck(state, $value)&quot;
</span><span class="cx">         }
</span><ins>+        if ($signature-&gt;isNullable) {
+            return &quot;valueToStringWithUndefinedOrNullCheck(state, $value)&quot;;
+        }
</ins><span class="cx">         if ($signature-&gt;extendedAttributes-&gt;{&quot;AtomicString&quot;}) {
</span><span class="cx">             return &quot;$value.toString(state)-&gt;toAtomicString(state)&quot;;
</span><span class="cx">         }
</span><span class="lines">@@ -4190,6 +4193,7 @@
</span><span class="cx"> 
</span><span class="cx">             die &quot;Unknown value for TreatReturnedNullStringAs extended attribute&quot;;
</span><span class="cx">         }
</span><ins>+        return &quot;jsStringOrNull(state, $value)&quot; if $signature-&gt;isNullable;
</ins><span class="cx">         AddToImplIncludes(&quot;&lt;runtime/JSString.h&gt;&quot;, $conditional);
</span><span class="cx">         return &quot;jsStringWithCache(state, $value)&quot;;
</span><span class="cx">     }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -137,6 +137,7 @@
</span><span class="cx">     PROP_NULLABLE_BOOLEAN_ATTRIBUTE,
</span><span class="cx">     PROP_NULLABLE_STRING_ATTRIBUTE,
</span><span class="cx">     PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE,
</span><ins>+    PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE,
</ins><span class="cx">     PROP_NULLABLE_STRING_VALUE,
</span><span class="cx">     PROP_ATTRIBUTE,
</span><span class="cx">     PROP_PUT_FORWARDS_ATTRIBUTE,
</span><span class="lines">@@ -251,6 +252,9 @@
</span><span class="cx">     case PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE:
</span><span class="cx">         webkit_dom_test_obj_set_nullable_long_settable_attribute(self, g_value_get_long(value));
</span><span class="cx">         break;
</span><ins>+    case PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE:
+        webkit_dom_test_obj_set_nullable_string_settable_attribute(self, g_value_get_string(value));
+        break;
</ins><span class="cx">     case PROP_NULLABLE_STRING_VALUE:
</span><span class="cx">         webkit_dom_test_obj_set_nullable_string_value(self, g_value_get_long(value));
</span><span class="cx">         break;
</span><span class="lines">@@ -442,6 +446,9 @@
</span><span class="cx">     case PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE:
</span><span class="cx">         g_value_set_long(value, webkit_dom_test_obj_get_nullable_long_settable_attribute(self));
</span><span class="cx">         break;
</span><ins>+    case PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE:
+        g_value_take_string(value, webkit_dom_test_obj_get_nullable_string_settable_attribute(self));
+        break;
</ins><span class="cx">     case PROP_NULLABLE_STRING_VALUE:
</span><span class="cx">         g_value_set_long(value, webkit_dom_test_obj_get_nullable_string_value(self, nullptr));
</span><span class="cx">         break;
</span><span class="lines">@@ -1072,6 +1079,16 @@
</span><span class="cx"> 
</span><span class="cx">     g_object_class_install_property(
</span><span class="cx">         gobjectClass,
</span><ins>+        PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE,
+        g_param_spec_string(
+            &quot;nullable-string-settable-attribute&quot;,
+            &quot;TestObj:nullable-string-settable-attribute&quot;,
+            &quot;read-write gchar* TestObj:nullable-string-settable-attribute&quot;,
+            &quot;&quot;,
+            WEBKIT_PARAM_READWRITE));
+
+    g_object_class_install_property(
+        gobjectClass,
</ins><span class="cx">         PROP_NULLABLE_STRING_VALUE,
</span><span class="cx">         g_param_spec_long(
</span><span class="cx">             &quot;nullable-string-value&quot;,
</span><span class="lines">@@ -2604,6 +2621,25 @@
</span><span class="cx">     item-&gt;setNullableLongSettableAttribute(value);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+gchar* webkit_dom_test_obj_get_nullable_string_settable_attribute(WebKitDOMTestObj* self)
+{
+    WebCore::JSMainThreadNullState state;
+    g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
+    WebCore::TestObj* item = WebKit::core(self);
+    gchar* result = convertToUTF8String(item-&gt;nullableStringSettableAttribute());
+    return result;
+}
+
+void webkit_dom_test_obj_set_nullable_string_settable_attribute(WebKitDOMTestObj* self, const gchar* value)
+{
+    WebCore::JSMainThreadNullState state;
+    g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
+    g_return_if_fail(value);
+    WebCore::TestObj* item = WebKit::core(self);
+    WTF::String convertedValue = WTF::String::fromUTF8(value);
+    item-&gt;setNullableStringSettableAttribute(convertedValue);
+}
+
</ins><span class="cx"> glong webkit_dom_test_obj_get_nullable_string_value(WebKitDOMTestObj* self, GError** error)
</span><span class="cx"> {
</span><span class="cx">     WebCore::JSMainThreadNullState state;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1685,6 +1685,27 @@
</span><span class="cx"> webkit_dom_test_obj_set_nullable_long_settable_attribute(WebKitDOMTestObj* self, glong value);
</span><span class="cx"> 
</span><span class="cx"> /**
</span><ins>+ * webkit_dom_test_obj_get_nullable_string_settable_attribute:
+ * @self: A #WebKitDOMTestObj
+ *
+ * Returns: A #gchar
+ *
+ * Stability: Unstable
+**/
+WEBKIT_API gchar*
+webkit_dom_test_obj_get_nullable_string_settable_attribute(WebKitDOMTestObj* self);
+
+/**
+ * webkit_dom_test_obj_set_nullable_string_settable_attribute:
+ * @self: A #WebKitDOMTestObj
+ * @value: A #gchar
+ *
+ * Stability: Unstable
+**/
+WEBKIT_API void
+webkit_dom_test_obj_set_nullable_string_settable_attribute(WebKitDOMTestObj* self, const gchar* value);
+
+/**
</ins><span class="cx">  * webkit_dom_test_obj_get_nullable_string_value:
</span><span class="cx">  * @self: A #WebKitDOMTestObj
</span><span class="cx">  * @error: #GError
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -325,6 +325,8 @@
</span><span class="cx"> JSC::EncodedJSValue jsTestObjNullableStringAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="cx"> JSC::EncodedJSValue jsTestObjNullableLongSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="cx"> void setJSTestObjNullableLongSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
</span><ins>+JSC::EncodedJSValue jsTestObjNullableStringSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
+void setJSTestObjNullableStringSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
</ins><span class="cx"> JSC::EncodedJSValue jsTestObjNullableStringValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="cx"> void setJSTestObjNullableStringValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
</span><span class="cx"> JSC::EncodedJSValue jsTestObjAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="lines">@@ -587,6 +589,7 @@
</span><span class="cx">     { &quot;nullableBooleanAttribute&quot;, ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestObjNullableBooleanAttribute), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(0) } },
</span><span class="cx">     { &quot;nullableStringAttribute&quot;, ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestObjNullableStringAttribute), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(0) } },
</span><span class="cx">     { &quot;nullableLongSettableAttribute&quot;, CustomAccessor, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestObjNullableLongSettableAttribute), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestObjNullableLongSettableAttribute) } },
</span><ins>+    { &quot;nullableStringSettableAttribute&quot;, CustomAccessor, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestObjNullableStringSettableAttribute), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestObjNullableStringSettableAttribute) } },
</ins><span class="cx">     { &quot;nullableStringValue&quot;, CustomAccessor, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestObjNullableStringValue), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestObjNullableStringValue) } },
</span><span class="cx">     { &quot;attribute&quot;, ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestObjAttribute), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(0) } },
</span><span class="cx">     { &quot;attributeWithReservedEnumType&quot;, CustomAccessor, NoIntrinsic, { (intptr_t)static_cast&lt;PropertySlot::GetValueFunc&gt;(jsTestObjAttributeWithReservedEnumType), (intptr_t) static_cast&lt;PutPropertySlot::PutValueFunc&gt;(setJSTestObjAttributeWithReservedEnumType) } },
</span><span class="lines">@@ -1861,7 +1864,7 @@
</span><span class="cx">         return throwGetterTypeError(*state, &quot;TestObj&quot;, &quot;nullableStringAttribute&quot;);
</span><span class="cx">     }
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><del>-    JSValue result = jsStringWithCache(state, impl.nullableStringAttribute());
</del><ins>+    JSValue result = jsStringOrNull(state, impl.nullableStringAttribute());
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -1881,6 +1884,21 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+EncodedJSValue jsTestObjNullableStringSettableAttribute(ExecState* state, EncodedJSValue thisValue, PropertyName)
+{
+    UNUSED_PARAM(state);
+    UNUSED_PARAM(thisValue);
+    JSValue decodedThisValue = JSValue::decode(thisValue);
+    auto* castedThis = jsDynamicCast&lt;JSTestObj*&gt;(decodedThisValue);
+    if (UNLIKELY(!castedThis)) {
+        return throwGetterTypeError(*state, &quot;TestObj&quot;, &quot;nullableStringSettableAttribute&quot;);
+    }
+    auto&amp; impl = castedThis-&gt;wrapped();
+    JSValue result = jsStringOrNull(state, impl.nullableStringSettableAttribute());
+    return JSValue::encode(result);
+}
+
+
</ins><span class="cx"> EncodedJSValue jsTestObjNullableStringValue(ExecState* state, EncodedJSValue thisValue, PropertyName)
</span><span class="cx"> {
</span><span class="cx">     UNUSED_PARAM(state);
</span><span class="lines">@@ -2955,6 +2973,23 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> 
</span><ins>+void setJSTestObjNullableStringSettableAttribute(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
+{
+    JSValue value = JSValue::decode(encodedValue);
+    UNUSED_PARAM(thisValue);
+    JSTestObj* castedThis = jsDynamicCast&lt;JSTestObj*&gt;(JSValue::decode(thisValue));
+    if (UNLIKELY(!castedThis)) {
+        throwSetterTypeError(*state, &quot;TestObj&quot;, &quot;nullableStringSettableAttribute&quot;);
+        return;
+    }
+    auto&amp; impl = castedThis-&gt;wrapped();
+    String nativeValue = valueToStringWithUndefinedOrNullCheck(state, value);
+    if (UNLIKELY(state-&gt;hadException()))
+        return;
+    impl.setNullableStringSettableAttribute(nativeValue);
+}
+
+
</ins><span class="cx"> void setJSTestObjNullableStringValue(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</span><span class="cx"> {
</span><span class="cx">     JSValue value = JSValue::decode(encodedValue);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMTestObjh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -126,6 +126,7 @@
</span><span class="cx"> @property (readonly) BOOL nullableBooleanAttribute;
</span><span class="cx"> @property (readonly, copy) NSString *nullableStringAttribute;
</span><span class="cx"> @property int nullableLongSettableAttribute;
</span><ins>+@property (copy) NSString *nullableStringSettableAttribute;
</ins><span class="cx"> @property int nullableStringValue;
</span><span class="cx"> @property (readonly, copy) NSString *attribute;
</span><span class="cx"> @property (readonly, strong) DOMTestNode *putForwardsAttribute;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMTestObjmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -870,6 +870,18 @@
</span><span class="cx">     IMPL-&gt;setNullableLongSettableAttribute(newNullableLongSettableAttribute);
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+- (NSString *)nullableStringSettableAttribute
+{
+    WebCore::JSMainThreadNullState state;
+    return IMPL-&gt;nullableStringSettableAttribute();
+}
+
+- (void)setNullableStringSettableAttribute:(NSString *)newNullableStringSettableAttribute
+{
+    WebCore::JSMainThreadNullState state;
+    IMPL-&gt;setNullableStringSettableAttribute(newNullableStringSettableAttribute);
+}
+
</ins><span class="cx"> - (int)nullableStringValue
</span><span class="cx"> {
</span><span class="cx">     WebCore::JSMainThreadNullState state;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestTestObjidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/TestObj.idl (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -304,6 +304,7 @@
</span><span class="cx">     readonly attribute DOMString? nullableStringAttribute;
</span><span class="cx"> 
</span><span class="cx">     attribute long? nullableLongSettableAttribute;
</span><ins>+    attribute DOMString? nullableStringSettableAttribute;
</ins><span class="cx"> 
</span><span class="cx">     [GetterRaisesException] attribute long? nullableStringValue;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageElement.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageElement.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLImageElement.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -567,6 +567,16 @@
</span><span class="cx">     return document().completeURL(stripLeadingAndTrailingHTMLSpaces(usemap)).isEmpty();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void HTMLImageElement::setCrossOrigin(const AtomicString&amp; value)
+{
+    setAttributeWithoutSynchronization(crossoriginAttr, value);
+}
+
+String HTMLImageElement::crossOrigin() const
+{
+    return parseCORSSettingsAttribute(fastGetAttribute(crossoriginAttr));
+}
+
</ins><span class="cx"> #if ENABLE(SERVICE_CONTROLS)
</span><span class="cx"> void HTMLImageElement::updateImageControls()
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageElement.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageElement.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLImageElement.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -69,6 +69,9 @@
</span><span class="cx">     URL src() const;
</span><span class="cx">     void setSrc(const String&amp;);
</span><span class="cx"> 
</span><ins>+    void setCrossOrigin(const AtomicString&amp;);
+    String crossOrigin() const;
+
</ins><span class="cx">     void setWidth(int);
</span><span class="cx"> 
</span><span class="cx">     int x() const;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageElement.idl (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageElement.idl        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLImageElement.idl        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx">     [Reflect] attribute DOMString align;
</span><span class="cx">     [Reflect] attribute DOMString alt;
</span><span class="cx">     [Reflect] attribute DOMString border;
</span><del>-    [Reflect] attribute DOMString crossOrigin;
</del><ins>+    attribute DOMString? crossOrigin;
</ins><span class="cx">     attribute long height;
</span><span class="cx">     [Reflect] attribute long hspace;
</span><span class="cx">     [Reflect] attribute boolean isMap;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLScriptElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLScriptElement.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLScriptElement.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLScriptElement.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #include &quot;Event.h&quot;
</span><span class="cx"> #include &quot;EventNames.h&quot;
</span><span class="cx"> #include &quot;HTMLNames.h&quot;
</span><ins>+#include &quot;HTMLParserIdioms.h&quot;
</ins><span class="cx"> #include &quot;Text.h&quot;
</span><span class="cx"> #include &lt;wtf/Ref.h&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -104,6 +105,16 @@
</span><span class="cx">     return fastHasAttribute(asyncAttr) || forceAsync();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+void HTMLScriptElement::setCrossOrigin(const AtomicString&amp; value)
+{
+    setAttributeWithoutSynchronization(crossoriginAttr, value);
+}
+
+String HTMLScriptElement::crossOrigin() const
+{
+    return parseCORSSettingsAttribute(fastGetAttribute(crossoriginAttr));
+}
+
</ins><span class="cx"> URL HTMLScriptElement::src() const
</span><span class="cx"> {
</span><span class="cx">     return document().completeURL(sourceAttributeValue());
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLScriptElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLScriptElement.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLScriptElement.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLScriptElement.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -41,6 +41,9 @@
</span><span class="cx">     void setAsync(bool);
</span><span class="cx">     bool async() const;
</span><span class="cx"> 
</span><ins>+    void setCrossOrigin(const AtomicString&amp;);
+    String crossOrigin() const;
+
</ins><span class="cx"> private:
</span><span class="cx">     HTMLScriptElement(const QualifiedName&amp;, Document&amp;, bool wasInsertedByParser, bool alreadyStarted);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLScriptElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLScriptElement.idl (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLScriptElement.idl        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLScriptElement.idl        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -26,6 +26,6 @@
</span><span class="cx">     [Reflect] attribute boolean defer;
</span><span class="cx">     [Reflect, URL] attribute DOMString src;
</span><span class="cx">     [Reflect] attribute DOMString type;
</span><del>-    [Reflect] attribute DOMString crossOrigin;
</del><ins>+    attribute DOMString? crossOrigin;
</ins><span class="cx">     [Reflect, Conditional=CSP_NEXT] attribute DOMString nonce;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLParserIdiomscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -30,6 +30,7 @@
</span><span class="cx"> #include &quot;URL.h&quot;
</span><span class="cx"> #include &lt;limits&gt;
</span><span class="cx"> #include &lt;wtf/MathExtras.h&gt;
</span><ins>+#include &lt;wtf/NeverDestroyed.h&gt;
</ins><span class="cx"> #include &lt;wtf/text/StringBuilder.h&gt;
</span><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -290,4 +291,13 @@
</span><span class="cx">     return threadSafeEqual(*a.localName().impl(), *b.localName().impl());
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+String parseCORSSettingsAttribute(const AtomicString&amp; value)
+{
+    if (value.isNull())
+        return String();
+    if (equalIgnoringASCIICase(value, &quot;use-credentials&quot;))
+        return ASCIILiteral(&quot;use-credentials&quot;);
+    return ASCIILiteral(&quot;anonymous&quot;);
</ins><span class="cx"> }
</span><ins>+
+}
</ins></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLParserIdiomsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLParserIdioms.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLParserIdioms.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/parser/HTMLParserIdioms.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -62,6 +62,9 @@
</span><span class="cx"> // http://www.whatwg.org/specs/web-apps/current-work/#rules-for-parsing-non-negative-integers
</span><span class="cx"> bool parseHTMLNonNegativeInteger(const String&amp;, unsigned int&amp;);
</span><span class="cx"> 
</span><ins>+// https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-attribute
+String parseCORSSettingsAttribute(const AtomicString&amp;);
+
</ins><span class="cx"> bool threadSafeMatch(const QualifiedName&amp;, const QualifiedName&amp;);
</span><span class="cx"> 
</span><span class="cx"> // Inline implementations of some of the functions declared above.
</span></span></pre>
</div>
</div>

</body>
</html>