<!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>[196793] 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/196793">196793</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-02-18 18:45:50 -0800 (Thu, 18 Feb 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>HTMLTableHeaderCellElement.scope should only return known values
https://bugs.webkit.org/show_bug.cgi?id=154423
<rdar://problem/24731018>
Reviewed by Ryosuke Niwa.
LayoutTests/imported/w3c:
Rebaseline now that more checks are passing.
* web-platform-tests/html/dom/reflection-tabular-expected.txt:
Source/WebCore:
HTMLTableHeaderCellElement.scope should only return known values as per:
- https://html.spec.whatwg.org/multipage/tables.html#dom-th-scope
Known values are document here:
- https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope
No new tests, already covered by existing test.
* CMakeLists.txt:
* WebCore.vcxproj/WebCore.vcxproj:
* WebCore.vcxproj/WebCore.vcxproj.filters:
* WebCore.xcodeproj/project.pbxproj:
* html/HTMLElementsAllInOne.cpp:
* html/HTMLTableHeaderCellElement.cpp: Copied from Source/WebCore/html/HTMLTableHeaderCellElement.h.
(WebCore::HTMLTableHeaderCellElement::scope):
(WebCore::HTMLTableHeaderCellElement::setScope):
* html/HTMLTableHeaderCellElement.h:
* html/HTMLTableHeaderCellElement.idl:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectiontabularexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-tabular-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreCMakeListstxt">trunk/Source/WebCore/CMakeLists.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxproj">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj</a></li>
<li><a href="#trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters">trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLElementsAllInOnecpp">trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTableHeaderCellElementh">trunk/Source/WebCore/html/HTMLTableHeaderCellElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLTableHeaderCellElementidl">trunk/Source/WebCore/html/HTMLTableHeaderCellElement.idl</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunkSourceWebCorehtmlHTMLTableHeaderCellElementcpp">trunk/Source/WebCore/html/HTMLTableHeaderCellElement.cpp</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -1,5 +1,17 @@
</span><span class="cx"> 2016-02-18 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><ins>+ HTMLTableHeaderCellElement.scope should only return known values
+ https://bugs.webkit.org/show_bug.cgi?id=154423
+ <rdar://problem/24731018>
+
+ Reviewed by Ryosuke Niwa.
+
+ Rebaseline now that more checks are passing.
+
+ * web-platform-tests/html/dom/reflection-tabular-expected.txt:
+
+2016-02-18 Chris Dumez <cdumez@apple.com>
+
</ins><span class="cx"> [Unforgeable] operations should not be writable as per Web IDL
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=154396
</span><span class="cx"> <rdar://problem/24721063>
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectiontabularexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-tabular-expected.txt (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-tabular-expected.txt        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-tabular-expected.txt        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -12610,177 +12610,177 @@
</span><span class="cx"> PASS th.scope: setAttribute() to "" followed by getAttribute()
</span><span class="cx"> PASS th.scope: setAttribute() to "" followed by IDL get
</span><span class="cx"> PASS th.scope: 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 th.scope: 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>+PASS th.scope: 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
</ins><span class="cx"> PASS th.scope: setAttribute() to undefined followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to undefined followed by IDL get assert_equals: expected "" but got "undefined"
</del><ins>+PASS th.scope: setAttribute() to undefined followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to 7 followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to 7 followed by IDL get assert_equals: expected "" but got "7"
</del><ins>+PASS th.scope: setAttribute() to 7 followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to 1.5 followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to 1.5 followed by IDL get assert_equals: expected "" but got "1.5"
</del><ins>+PASS th.scope: setAttribute() to 1.5 followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to true followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to true followed by IDL get assert_equals: expected "" but got "true"
</del><ins>+PASS th.scope: setAttribute() to true followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to false followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to false followed by IDL get assert_equals: expected "" but got "false"
</del><ins>+PASS th.scope: setAttribute() to false followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to object "[object Object]" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "" but got "[object Object]"
</del><ins>+PASS th.scope: setAttribute() to object "[object Object]" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to NaN followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to NaN followed by IDL get assert_equals: expected "" but got "NaN"
</del><ins>+PASS th.scope: setAttribute() to NaN followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to Infinity followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to Infinity followed by IDL get assert_equals: expected "" but got "Infinity"
</del><ins>+PASS th.scope: setAttribute() to Infinity followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to -Infinity followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to -Infinity followed by IDL get assert_equals: expected "" but got "-Infinity"
</del><ins>+PASS th.scope: setAttribute() to -Infinity followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "\0" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "\0" followed by IDL get assert_equals: expected "" but got "\0"
</del><ins>+PASS th.scope: setAttribute() to "\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to null followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to null followed by IDL get assert_equals: expected "" but got "null"
</del><ins>+PASS th.scope: setAttribute() to null followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to object "test-toString" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "" but got "test-toString"
</del><ins>+PASS th.scope: setAttribute() to object "test-toString" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "" but got "test-valueOf"
</del><ins>+PASS th.scope: setAttribute() to object "test-valueOf" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "row" followed by getAttribute()
</span><span class="cx"> PASS th.scope: setAttribute() to "row" followed by IDL get
</span><span class="cx"> PASS th.scope: setAttribute() to "xrow" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "xrow" followed by IDL get assert_equals: expected "" but got "xrow"
</del><ins>+PASS th.scope: setAttribute() to "xrow" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "row\0" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "row\0" followed by IDL get assert_equals: expected "" but got "row\0"
</del><ins>+PASS th.scope: setAttribute() to "row\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "ow" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "ow" followed by IDL get assert_equals: expected "" but got "ow"
</del><ins>+PASS th.scope: setAttribute() to "ow" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "ROW" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "ROW" followed by IDL get assert_equals: expected "row" but got "ROW"
</del><ins>+PASS th.scope: setAttribute() to "ROW" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "col" followed by getAttribute()
</span><span class="cx"> PASS th.scope: setAttribute() to "col" followed by IDL get
</span><span class="cx"> PASS th.scope: setAttribute() to "xcol" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "xcol" followed by IDL get assert_equals: expected "" but got "xcol"
</del><ins>+PASS th.scope: setAttribute() to "xcol" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "col\0" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "col\0" followed by IDL get assert_equals: expected "" but got "col\0"
</del><ins>+PASS th.scope: setAttribute() to "col\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "ol" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "ol" followed by IDL get assert_equals: expected "" but got "ol"
</del><ins>+PASS th.scope: setAttribute() to "ol" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "COL" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "COL" followed by IDL get assert_equals: expected "col" but got "COL"
</del><ins>+PASS th.scope: setAttribute() to "COL" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "rowgroup" followed by getAttribute()
</span><span class="cx"> PASS th.scope: setAttribute() to "rowgroup" followed by IDL get
</span><span class="cx"> PASS th.scope: setAttribute() to "xrowgroup" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "xrowgroup" followed by IDL get assert_equals: expected "" but got "xrowgroup"
</del><ins>+PASS th.scope: setAttribute() to "xrowgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "rowgroup\0" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "rowgroup\0" followed by IDL get assert_equals: expected "" but got "rowgroup\0"
</del><ins>+PASS th.scope: setAttribute() to "rowgroup\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "owgroup" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "owgroup" followed by IDL get assert_equals: expected "" but got "owgroup"
</del><ins>+PASS th.scope: setAttribute() to "owgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "ROWGROUP" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "ROWGROUP" followed by IDL get assert_equals: expected "rowgroup" but got "ROWGROUP"
</del><ins>+PASS th.scope: setAttribute() to "ROWGROUP" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "colgroup" followed by getAttribute()
</span><span class="cx"> PASS th.scope: setAttribute() to "colgroup" followed by IDL get
</span><span class="cx"> PASS th.scope: setAttribute() to "xcolgroup" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "xcolgroup" followed by IDL get assert_equals: expected "" but got "xcolgroup"
</del><ins>+PASS th.scope: setAttribute() to "xcolgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "colgroup\0" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "colgroup\0" followed by IDL get assert_equals: expected "" but got "colgroup\0"
</del><ins>+PASS th.scope: setAttribute() to "colgroup\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "olgroup" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "olgroup" followed by IDL get assert_equals: expected "" but got "olgroup"
</del><ins>+PASS th.scope: setAttribute() to "olgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: setAttribute() to "COLGROUP" followed by getAttribute()
</span><del>-FAIL th.scope: setAttribute() to "COLGROUP" followed by IDL get assert_equals: expected "colgroup" but got "COLGROUP"
</del><ins>+PASS th.scope: setAttribute() to "COLGROUP" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "" followed by getAttribute()
</span><span class="cx"> PASS th.scope: IDL set to "" followed by IDL get
</span><span class="cx"> PASS th.scope: 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 th.scope: 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 th.scope: 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>+PASS th.scope: 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
</ins><span class="cx"> PASS th.scope: IDL set to undefined should not throw
</span><span class="cx"> PASS th.scope: IDL set to undefined followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to undefined followed by IDL get assert_equals: expected "" but got "undefined"
</del><ins>+PASS th.scope: IDL set to undefined followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to 7 should not throw
</span><span class="cx"> PASS th.scope: IDL set to 7 followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to 7 followed by IDL get assert_equals: expected "" but got "7"
</del><ins>+PASS th.scope: IDL set to 7 followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to 1.5 should not throw
</span><span class="cx"> PASS th.scope: IDL set to 1.5 followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to 1.5 followed by IDL get assert_equals: expected "" but got "1.5"
</del><ins>+PASS th.scope: IDL set to 1.5 followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to true should not throw
</span><span class="cx"> PASS th.scope: IDL set to true followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to true followed by IDL get assert_equals: expected "" but got "true"
</del><ins>+PASS th.scope: IDL set to true followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to false should not throw
</span><span class="cx"> PASS th.scope: IDL set to false followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to false followed by IDL get assert_equals: expected "" but got "false"
</del><ins>+PASS th.scope: IDL set to false followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to object "[object Object]" should not throw
</span><span class="cx"> PASS th.scope: IDL set to object "[object Object]" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "" but got "[object Object]"
</del><ins>+PASS th.scope: IDL set to object "[object Object]" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to NaN should not throw
</span><span class="cx"> PASS th.scope: IDL set to NaN followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to NaN followed by IDL get assert_equals: expected "" but got "NaN"
</del><ins>+PASS th.scope: IDL set to NaN followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to Infinity should not throw
</span><span class="cx"> PASS th.scope: IDL set to Infinity followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to Infinity followed by IDL get assert_equals: expected "" but got "Infinity"
</del><ins>+PASS th.scope: IDL set to Infinity followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to -Infinity should not throw
</span><span class="cx"> PASS th.scope: IDL set to -Infinity followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to -Infinity followed by IDL get assert_equals: expected "" but got "-Infinity"
</del><ins>+PASS th.scope: IDL set to -Infinity followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "\0" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "\0" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "\0" followed by IDL get assert_equals: expected "" but got "\0"
</del><ins>+PASS th.scope: IDL set to "\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to null should not throw
</span><del>-FAIL th.scope: IDL set to null followed by IDL get assert_equals: expected "" but got "null"
</del><ins>+PASS th.scope: IDL set to null followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to object "test-toString" should not throw
</span><span class="cx"> PASS th.scope: IDL set to object "test-toString" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to object "test-toString" followed by IDL get assert_equals: expected "" but got "test-toString"
</del><ins>+PASS th.scope: IDL set to object "test-toString" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS th.scope: IDL set to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "" but got "test-valueOf"
</del><ins>+PASS th.scope: IDL set to object "test-valueOf" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "row" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "row" followed by getAttribute()
</span><span class="cx"> PASS th.scope: IDL set to "row" followed by IDL get
</span><span class="cx"> PASS th.scope: IDL set to "xrow" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "xrow" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "xrow" followed by IDL get assert_equals: expected "" but got "xrow"
</del><ins>+PASS th.scope: IDL set to "xrow" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "row\0" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "row\0" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "row\0" followed by IDL get assert_equals: expected "" but got "row\0"
</del><ins>+PASS th.scope: IDL set to "row\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "ow" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "ow" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "ow" followed by IDL get assert_equals: expected "" but got "ow"
</del><ins>+PASS th.scope: IDL set to "ow" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "ROW" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "ROW" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "ROW" followed by IDL get assert_equals: expected "row" but got "ROW"
</del><ins>+PASS th.scope: IDL set to "ROW" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "col" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "col" followed by getAttribute()
</span><span class="cx"> PASS th.scope: IDL set to "col" followed by IDL get
</span><span class="cx"> PASS th.scope: IDL set to "xcol" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "xcol" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "xcol" followed by IDL get assert_equals: expected "" but got "xcol"
</del><ins>+PASS th.scope: IDL set to "xcol" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "col\0" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "col\0" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "col\0" followed by IDL get assert_equals: expected "" but got "col\0"
</del><ins>+PASS th.scope: IDL set to "col\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "ol" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "ol" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "ol" followed by IDL get assert_equals: expected "" but got "ol"
</del><ins>+PASS th.scope: IDL set to "ol" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "COL" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "COL" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "COL" followed by IDL get assert_equals: expected "col" but got "COL"
</del><ins>+PASS th.scope: IDL set to "COL" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "rowgroup" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "rowgroup" followed by getAttribute()
</span><span class="cx"> PASS th.scope: IDL set to "rowgroup" followed by IDL get
</span><span class="cx"> PASS th.scope: IDL set to "xrowgroup" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "xrowgroup" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "xrowgroup" followed by IDL get assert_equals: expected "" but got "xrowgroup"
</del><ins>+PASS th.scope: IDL set to "xrowgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "rowgroup\0" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "rowgroup\0" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "rowgroup\0" followed by IDL get assert_equals: expected "" but got "rowgroup\0"
</del><ins>+PASS th.scope: IDL set to "rowgroup\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "owgroup" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "owgroup" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "owgroup" followed by IDL get assert_equals: expected "" but got "owgroup"
</del><ins>+PASS th.scope: IDL set to "owgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "ROWGROUP" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "ROWGROUP" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "ROWGROUP" followed by IDL get assert_equals: expected "rowgroup" but got "ROWGROUP"
</del><ins>+PASS th.scope: IDL set to "ROWGROUP" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "colgroup" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "colgroup" followed by getAttribute()
</span><span class="cx"> PASS th.scope: IDL set to "colgroup" followed by IDL get
</span><span class="cx"> PASS th.scope: IDL set to "xcolgroup" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "xcolgroup" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "xcolgroup" followed by IDL get assert_equals: expected "" but got "xcolgroup"
</del><ins>+PASS th.scope: IDL set to "xcolgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "colgroup\0" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "colgroup\0" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "colgroup\0" followed by IDL get assert_equals: expected "" but got "colgroup\0"
</del><ins>+PASS th.scope: IDL set to "colgroup\0" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "olgroup" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "olgroup" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "olgroup" followed by IDL get assert_equals: expected "" but got "olgroup"
</del><ins>+PASS th.scope: IDL set to "olgroup" followed by IDL get
</ins><span class="cx"> PASS th.scope: IDL set to "COLGROUP" should not throw
</span><span class="cx"> PASS th.scope: IDL set to "COLGROUP" followed by getAttribute()
</span><del>-FAIL th.scope: IDL set to "COLGROUP" followed by IDL get assert_equals: expected "colgroup" but got "COLGROUP"
</del><ins>+PASS th.scope: IDL set to "COLGROUP" followed by IDL get
</ins><span class="cx"> PASS th.abbr: typeof IDL attribute
</span><span class="cx"> PASS th.abbr: IDL get with DOM attribute unset
</span><span class="cx"> PASS th.abbr: setAttribute() to "" followed by getAttribute()
</span></span></pre></div>
<a id="trunkSourceWebCoreCMakeListstxt"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/CMakeLists.txt (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/CMakeLists.txt        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/CMakeLists.txt        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -1729,6 +1729,7 @@
</span><span class="cx"> html/HTMLTableCellElement.cpp
</span><span class="cx"> html/HTMLTableColElement.cpp
</span><span class="cx"> html/HTMLTableElement.cpp
</span><ins>+ html/HTMLTableHeaderCellElement.cpp
</ins><span class="cx"> html/HTMLTablePartElement.cpp
</span><span class="cx"> html/HTMLTableRowElement.cpp
</span><span class="cx"> html/HTMLTableRowsCollection.cpp
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/ChangeLog        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -1,3 +1,30 @@
</span><ins>+2016-02-18 Chris Dumez <cdumez@apple.com>
+
+ HTMLTableHeaderCellElement.scope should only return known values
+ https://bugs.webkit.org/show_bug.cgi?id=154423
+ <rdar://problem/24731018>
+
+ Reviewed by Ryosuke Niwa.
+
+ HTMLTableHeaderCellElement.scope should only return known values as per:
+ - https://html.spec.whatwg.org/multipage/tables.html#dom-th-scope
+
+ Known values are document here:
+ - https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope
+
+ No new tests, already covered by existing test.
+
+ * CMakeLists.txt:
+ * WebCore.vcxproj/WebCore.vcxproj:
+ * WebCore.vcxproj/WebCore.vcxproj.filters:
+ * WebCore.xcodeproj/project.pbxproj:
+ * html/HTMLElementsAllInOne.cpp:
+ * html/HTMLTableHeaderCellElement.cpp: Copied from Source/WebCore/html/HTMLTableHeaderCellElement.h.
+ (WebCore::HTMLTableHeaderCellElement::scope):
+ (WebCore::HTMLTableHeaderCellElement::setScope):
+ * html/HTMLTableHeaderCellElement.h:
+ * html/HTMLTableHeaderCellElement.idl:
+
</ins><span class="cx"> 2016-02-18 Brent Fulgham <bfulgham@apple.com>
</span><span class="cx">
</span><span class="cx"> Extend HashCountedSet with a method to efficiently set the count of an entry
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -17329,6 +17329,20 @@
</span><span class="cx"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
</span><span class="cx"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
</span><span class="cx"> </ClCompile>
</span><ins>+ <ClCompile Include="..\html\HTMLTableHeaderCellElement.cpp">
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|Win32'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug_WinCairo|x64'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|Win32'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='DebugSuffix|x64'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
+ <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
+ </ClCompile>
</ins><span class="cx"> <ClCompile Include="..\html\HTMLTablePartElement.cpp">
</span><span class="cx"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
</span><span class="cx"> <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorevcxprojWebCorevcxprojfilters"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -3926,6 +3926,9 @@
</span><span class="cx"> <ClCompile Include="..\html\HTMLTableElement.cpp">
</span><span class="cx"> <Filter>html</Filter>
</span><span class="cx"> </ClCompile>
</span><ins>+ <ClCompile Include="..\html\HTMLTableHeaderCellElement.cpp">
+ <Filter>html</Filter>
+ </ClCompile>
</ins><span class="cx"> <ClCompile Include="..\html\HTMLTablePartElement.cpp">
</span><span class="cx"> <Filter>html</Filter>
</span><span class="cx"> </ClCompile>
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -1719,6 +1719,7 @@
</span><span class="cx">                 46C83EFE1A9BBE2900A79A41 /* GeoNotifier.h in Headers */ = {isa = PBXBuildFile; fileRef = 46C83EFC1A9BBE2900A79A41 /* GeoNotifier.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 46DB7D571B20FE46005651B2 /* VNodeTrackerCocoa.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DB7D561B20FE3C005651B2 /* VNodeTrackerCocoa.cpp */; };
</span><span class="cx">                 46DBB6501AB8C96F00D9A813 /* PowerObserverMac.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */; };
</span><ins>+                46DCFDC01C768A150025B868 /* HTMLTableHeaderCellElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */; };
</ins><span class="cx">                 46EBEA021B7D4D6500BE4941 /* CollectionTraversal.h in Headers */ = {isa = PBXBuildFile; fileRef = 46EBEA011B7D4D5D00BE4941 /* CollectionTraversal.h */; };
</span><span class="cx">                 46F3E3F91B2109000087ED13 /* VNodeTracker.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 46DB7D581B20FE58005651B2 /* VNodeTracker.cpp */; };
</span><span class="cx">                 46F3E3FA1B2109100087ED13 /* VNodeTracker.h in Headers */ = {isa = PBXBuildFile; fileRef = 46DB7D591B20FE58005651B2 /* VNodeTracker.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -9232,6 +9233,7 @@
</span><span class="cx">                 46DB7D581B20FE58005651B2 /* VNodeTracker.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = VNodeTracker.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 46DB7D591B20FE58005651B2 /* VNodeTracker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VNodeTracker.h; sourceTree = "<group>"; };
</span><span class="cx">                 46DBB64E1AB8C96F00D9A813 /* PowerObserverMac.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PowerObserverMac.h; sourceTree = "<group>"; };
</span><ins>+                46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLTableHeaderCellElement.cpp; sourceTree = "<group>"; };
</ins><span class="cx">                 46EBEA011B7D4D5D00BE4941 /* CollectionTraversal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CollectionTraversal.h; sourceTree = "<group>"; };
</span><span class="cx">                 46F2768E1B85297F005C2556 /* JSDOMNamedFlowCollectionCustom.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMNamedFlowCollectionCustom.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 490707E41219C04300D90E51 /* ANGLEWebKitBridge.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ANGLEWebKitBridge.cpp; sourceTree = "<group>"; };
</span><span class="lines">@@ -19316,6 +19318,7 @@
</span><span class="cx">                                 A871DB1A0A150BD600B12A68 /* HTMLTableElement.cpp */,
</span><span class="cx">                                 A871DB190A150BD600B12A68 /* HTMLTableElement.h */,
</span><span class="cx">                                 8555425A0AA48B1E00BA89F2 /* HTMLTableElement.idl */,
</span><ins>+                                46DCFDBF1C768A150025B868 /* HTMLTableHeaderCellElement.cpp */,
</ins><span class="cx">                                 836BAD1F1BD1CA670037356A /* HTMLTableHeaderCellElement.h */,
</span><span class="cx">                                 83FE5F1F1BD1C55E0038BEEC /* HTMLTableHeaderCellElement.idl */,
</span><span class="cx">                                 A871DB1F0A150BD600B12A68 /* HTMLTablePartElement.cpp */,
</span><span class="lines">@@ -29432,6 +29435,7 @@
</span><span class="cx">                                 85ECBEEC0AA7626900544F0B /* DOMHTMLAreaElement.mm in Sources */,
</span><span class="cx">                                 859A9C480AA5E3BD00B694B2 /* DOMHTMLBaseElement.mm in Sources */,
</span><span class="cx">                                 85ECBEEE0AA7626900544F0B /* DOMHTMLBaseFontElement.mm in Sources */,
</span><ins>+                                46DCFDC01C768A150025B868 /* HTMLTableHeaderCellElement.cpp in Sources */,
</ins><span class="cx">                                 859A9C4A0AA5E3BD00B694B2 /* DOMHTMLBodyElement.mm in Sources */,
</span><span class="cx">                                 85183B430AA6926100F19FA3 /* DOMHTMLBRElement.mm in Sources */,
</span><span class="cx">                                 85BA4CDE0AA6861B0088052D /* DOMHTMLButtonElement.mm in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLElementsAllInOnecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -103,6 +103,7 @@
</span><span class="cx"> #include "HTMLTableCellElement.cpp"
</span><span class="cx"> #include "HTMLTableColElement.cpp"
</span><span class="cx"> #include "HTMLTableElement.cpp"
</span><ins>+#include "HTMLTableHeaderCellElement.cpp"
</ins><span class="cx"> #include "HTMLTablePartElement.cpp"
</span><span class="cx"> #include "HTMLTableRowElement.cpp"
</span><span class="cx"> #include "HTMLTableSectionElement.cpp"
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTableHeaderCellElementcppfromrev196792trunkSourceWebCorehtmlHTMLTableHeaderCellElementh"></a>
<div class="copfile"><h4>Copied: trunk/Source/WebCore/html/HTMLTableHeaderCellElement.cpp (from rev 196792, trunk/Source/WebCore/html/HTMLTableHeaderCellElement.h) (0 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTableHeaderCellElement.cpp         (rev 0)
+++ trunk/Source/WebCore/html/HTMLTableHeaderCellElement.cpp        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -0,0 +1,59 @@
</span><ins>+/*
+ * Copyright (C) 2016 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "HTMLTableHeaderCellElement.h"
+
+#include "HTMLNames.h"
+#include <wtf/text/AtomicString.h>
+
+namespace WebCore {
+
+const AtomicString& HTMLTableHeaderCellElement::scope() const
+{
+ // https://html.spec.whatwg.org/multipage/tables.html#attr-th-scope
+ static NeverDestroyed<const AtomicString> row("row", AtomicString::ConstructFromLiteral);
+ static NeverDestroyed<const AtomicString> col("col", AtomicString::ConstructFromLiteral);
+ static NeverDestroyed<const AtomicString> rowgroup("rowgroup", AtomicString::ConstructFromLiteral);
+ static NeverDestroyed<const AtomicString> colgroup("colgroup", AtomicString::ConstructFromLiteral);
+
+ const AtomicString& value = fastGetAttribute(HTMLNames::scopeAttr);
+ if (equalIgnoringASCIICase(value, row))
+ return row;
+ if (equalIgnoringASCIICase(value, col))
+ return col;
+ if (equalIgnoringASCIICase(value, rowgroup))
+ return rowgroup;
+ if (equalIgnoringASCIICase(value, colgroup))
+ return colgroup;
+ return emptyAtom;
+}
+
+void HTMLTableHeaderCellElement::setScope(const AtomicString& scope)
+{
+ setAttributeWithoutSynchronization(HTMLNames::scopeAttr, scope);
+}
+
+} // namespace WebCore
</ins></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTableHeaderCellElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTableHeaderCellElement.h (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTableHeaderCellElement.h        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/html/HTMLTableHeaderCellElement.h        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -44,6 +44,9 @@
</span><span class="cx"> return adoptRef(*new HTMLTableHeaderCellElement(tagName, document));
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+ const AtomicString& scope() const;
+ void setScope(const AtomicString&);
+
</ins><span class="cx"> private:
</span><span class="cx"> using HTMLTableCellElement::HTMLTableCellElement;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLTableHeaderCellElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLTableHeaderCellElement.idl (196792 => 196793)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLTableHeaderCellElement.idl        2016-02-19 02:44:34 UTC (rev 196792)
+++ trunk/Source/WebCore/html/HTMLTableHeaderCellElement.idl        2016-02-19 02:45:50 UTC (rev 196793)
</span><span class="lines">@@ -25,5 +25,5 @@
</span><span class="cx">
</span><span class="cx"> interface HTMLTableHeaderCellElement : HTMLTableCellElement {
</span><span class="cx"> [Reflect] attribute DOMString abbr;
</span><del>- [Reflect] attribute DOMString scope;
</del><ins>+ attribute DOMString scope;
</ins><span class="cx"> };
</span></span></pre>
</div>
</div>
</body>
</html>