<!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>[205791] 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/205791">205791</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-09-11 15:30:05 -0700 (Sun, 11 Sep 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>HTMLTrackElement.kind's invalid value default should be the metadata state
https://bugs.webkit.org/show_bug.cgi?id=161840

Reviewed by Eric Carlson.

LayoutTests/imported/w3c:

Rebaseline existing tests now that more checks are passing.

* web-platform-tests/html/dom/reflection-embedded-expected.txt:
* web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/kind-expected.txt:
* web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/kind-expected.txt:

Source/WebCore:

HTMLTrackElement.kind's invalid value default should be the metadata state,
not the subtitles state:
- https://html.spec.whatwg.org/#attr-track-kind

Chrome agrees with the specification.

No new tests, rebaselined existing tests.

* html/track/TextTrack.cpp:
(WebCore::TextTrack::setKindKeywordIgnoringASCIICase):

LayoutTests:

* media/track/track-kind-expected.txt:
* media/track/track-kind.html:
Update existing test to reflect behavior change.

* media/track/w3c/interfaces/TextTrack/kind.html:
Re-sync test from W3C as it was outdated.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionembeddedexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsembeddedcontentmediaelementsinterfacesHTMLElementHTMLTrackElementkindexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/kind-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsembeddedcontentmediaelementsinterfacesTextTrackkindexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/kind-expected.txt</a></li>
<li><a href="#trunkLayoutTestsmediatracktrackkindexpectedtxt">trunk/LayoutTests/media/track/track-kind-expected.txt</a></li>
<li><a href="#trunkLayoutTestsmediatracktrackkindhtml">trunk/LayoutTests/media/track/track-kind.html</a></li>
<li><a href="#trunkLayoutTestsmediatrackw3cinterfacesTextTrackkindhtml">trunk/LayoutTests/media/track/w3c/interfaces/TextTrack/kind.html</a></li>
<li><a href="#trunkLayoutTestsplatformiossimulatorimportedw3cwebplatformtestshtmldomreflectionembeddedexpectedtxt">trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorehtmltrackTextTrackcpp">trunk/Source/WebCore/html/track/TextTrack.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/ChangeLog        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -1,3 +1,17 @@
</span><ins>+2016-09-11  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        HTMLTrackElement.kind's invalid value default should be the metadata state
+        https://bugs.webkit.org/show_bug.cgi?id=161840
+
+        Reviewed by Eric Carlson.
+
+        * media/track/track-kind-expected.txt:
+        * media/track/track-kind.html:
+        Update existing test to reflect behavior change.
+
+        * media/track/w3c/interfaces/TextTrack/kind.html:
+        Re-sync test from W3C as it was outdated.
+
</ins><span class="cx"> 2016-09-11  Gyuyoung Kim  &lt;gyuyoung.kim@webkit.org&gt;
</span><span class="cx"> 
</span><span class="cx">         [EFL] Skip to test some w3c/web-platform-tests
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2016-09-11  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        HTMLTrackElement.kind's invalid value default should be the metadata state
+        https://bugs.webkit.org/show_bug.cgi?id=161840
+
+        Reviewed by Eric Carlson.
+
+        Rebaseline existing tests now that more checks are passing.
+
+        * web-platform-tests/html/dom/reflection-embedded-expected.txt:
+        * web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/kind-expected.txt:
+        * web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/kind-expected.txt:
+
</ins><span class="cx"> 2016-09-09  Jer Noble  &lt;jer.noble@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Media Source] Import updated w3c/web-platform-tests and rebaseline
</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 (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -11822,73 +11822,73 @@
</span><span class="cx"> PASS track.kind: typeof IDL attribute 
</span><span class="cx"> PASS track.kind: IDL get with DOM attribute unset 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: 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 track.kind: 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;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: 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 track.kind: setAttribute() to undefined followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to undefined followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to undefined followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to 7 followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to 7 followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to 7 followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to 1.5 followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to 1.5 followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to 1.5 followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to true followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to true followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to true followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to false followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to false followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to false followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to object &quot;[object Object]&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to object &quot;[object Object]&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to NaN followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to NaN followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to NaN followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to Infinity followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to Infinity followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to Infinity followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to -Infinity followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to -Infinity followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to -Infinity followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to null followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to null followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to null followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to object &quot;test-toString&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to object &quot;test-toString&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;subtitles&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;subtitles&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xsubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xsubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xsubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;subtitles\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;subtitles\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;subtitles\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;ubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;ubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;ubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;SUBTITLES&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;SUBTITLES&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;captions&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;captions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xcaptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xcaptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;captions&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xcaptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;captions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;captions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;captions&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;captions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;aptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;aptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;captions&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;aptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;CAPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;CAPTIONS&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;descriptions&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;descriptions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xdescriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xdescriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;descriptions&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xdescriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;descriptions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;descriptions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;descriptions&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;descriptions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;escriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;escriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;descriptions&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;escriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;DESCRIPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;DESCRIPTIONS&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;chapters&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;chapters&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xchapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xchapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;chapters&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xchapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;chapters\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;chapters\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;chapters&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;chapters\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;hapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;hapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;chapters&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;hapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;CHAPTERS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;CHAPTERS&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;metadata&quot; followed by getAttribute() 
</span><span class="lines">@@ -11950,13 +11950,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;subtitles&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xsubtitles&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xsubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xsubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xsubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;subtitles\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;subtitles\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;subtitles\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;subtitles\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;ubtitles&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;ubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;ubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;ubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;SUBTITLES&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;SUBTITLES&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;SUBTITLES&quot; followed by IDL get 
</span><span class="lines">@@ -11965,13 +11965,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;captions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xcaptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xcaptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xcaptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;captions&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xcaptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;captions\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;captions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;captions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;captions&quot;
</del><ins>+PASS track.kind: IDL set to &quot;captions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;aptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;aptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;aptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;captions&quot;
</del><ins>+PASS track.kind: IDL set to &quot;aptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;CAPTIONS&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CAPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CAPTIONS&quot; followed by IDL get 
</span><span class="lines">@@ -11980,13 +11980,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;descriptions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xdescriptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xdescriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xdescriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;descriptions&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xdescriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;descriptions\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;descriptions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;descriptions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;descriptions&quot;
</del><ins>+PASS track.kind: IDL set to &quot;descriptions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;escriptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;escriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;escriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;descriptions&quot;
</del><ins>+PASS track.kind: IDL set to &quot;escriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;DESCRIPTIONS&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;DESCRIPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;DESCRIPTIONS&quot; followed by IDL get 
</span><span class="lines">@@ -11995,13 +11995,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;chapters&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xchapters&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xchapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xchapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;chapters&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xchapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;chapters\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;chapters\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;chapters\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;chapters&quot;
</del><ins>+PASS track.kind: IDL set to &quot;chapters\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;hapters&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;hapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;hapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;chapters&quot;
</del><ins>+PASS track.kind: IDL set to &quot;hapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;CHAPTERS&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CHAPTERS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CHAPTERS&quot; followed by IDL get 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsembeddedcontentmediaelementsinterfacesHTMLElementHTMLTrackElementkindexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/kind-expected.txt (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/kind-expected.txt        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/HTMLElement/HTMLTrackElement/kind-expected.txt        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -1,15 +1,15 @@
</span><span class="cx"> 
</span><span class="cx"> PASS HTMLTrackElement.kind missing value 
</span><del>-FAIL HTMLTrackElement.kind invalid value in content attribute assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS HTMLTrackElement.kind invalid value in content attribute 
</ins><span class="cx"> PASS HTMLTrackElement.kind content attribute uppercase 
</span><del>-FAIL HTMLTrackElement.kind content attribute with uppercase turkish I (with dot) assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
-FAIL HTMLTrackElement.kind content attribute with lowercase turkish i (dotless) assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS HTMLTrackElement.kind content attribute with uppercase turkish I (with dot) 
+PASS HTMLTrackElement.kind content attribute with lowercase turkish i (dotless) 
</ins><span class="cx"> PASS HTMLTrackElement.kind content attribute &quot;subtitles&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind content attribute &quot;captions&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind content attribute &quot;descriptions&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind content attribute &quot;chapters&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind content attribute &quot;metadata&quot; 
</span><del>-FAIL HTMLTrackElement.kind content attribute &quot;captions\u0000&quot; assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS HTMLTrackElement.kind content attribute &quot;captions\u0000&quot; 
</ins><span class="cx"> PASS HTMLTrackElement.kind setting IDL attribute to &quot;subtitles&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind setting IDL attribute to &quot;captions&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind setting IDL attribute to &quot;descriptions&quot; 
</span><span class="lines">@@ -16,7 +16,7 @@
</span><span class="cx"> PASS HTMLTrackElement.kind setting IDL attribute to &quot;chapters&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind setting IDL attribute to &quot;metadata&quot; 
</span><span class="cx"> PASS HTMLTrackElement.kind setting IDL attribute to &quot;CAPTIONS&quot; 
</span><del>-FAIL HTMLTrackElement.kind setting IDL attribute with uppercase turkish I (with dot) assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
-FAIL HTMLTrackElement.kind setting IDL attribute with lowercase turkish I (dotless) assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
-FAIL HTMLTrackElement.kind setting IDL attribute with \u0000 assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS HTMLTrackElement.kind setting IDL attribute with uppercase turkish I (with dot) 
+PASS HTMLTrackElement.kind setting IDL attribute with lowercase turkish I (dotless) 
+PASS HTMLTrackElement.kind setting IDL attribute with \u0000 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlsemanticsembeddedcontentmediaelementsinterfacesTextTrackkindexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/kind-expected.txt (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/kind-expected.txt        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TextTrack/kind-expected.txt        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -1,5 +1,5 @@
</span><span class="cx"> 
</span><span class="cx"> PASS TextTrack.kind, addTextTrack 
</span><span class="cx"> PASS TextTrack.kind, track element 
</span><del>-FAIL TextTrack.kind, \u0000 assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS TextTrack.kind, \u0000 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsmediatracktrackkindexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/media/track/track-kind-expected.txt (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/media/track/track-kind-expected.txt        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/media/track/track-kind-expected.txt        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -11,15 +11,19 @@
</span><span class="cx"> RUN(trackElement.removeAttribute('kind'))
</span><span class="cx"> RUN(trackElement.kind = 'english-metadata')
</span><span class="cx"> EXPECTED (trackElement.getAttribute('kind') == 'english-metadata') OK
</span><del>-EXPECTED (trackElement.kind == 'subtitles') OK
-EXPECTED (trackElement.track.kind == 'subtitles') OK
</del><ins>+EXPECTED (trackElement.kind == 'metadata') OK
+EXPECTED (trackElement.track.kind == 'metadata') OK
</ins><span class="cx"> and via attribute
</span><span class="cx"> RUN(trackElement.removeAttribute('kind'))
</span><span class="cx"> RUN(trackElement.setAttribute('kind', 'english-metadata'))
</span><del>-EXPECTED (trackElement.kind == 'subtitles') OK
-EXPECTED (trackElement.track.kind == 'subtitles') OK
</del><ins>+EXPECTED (trackElement.kind == 'metadata') OK
+EXPECTED (trackElement.track.kind == 'metadata') OK
</ins><span class="cx"> EXPECTED (trackElement.getAttribute('kind') == 'english-metadata') OK
</span><span class="cx"> 
</span><ins>+RUN(trackElement.removeAttribute('kind'))
+EXPECTED (trackElement.kind == 'subtitles') OK
+EXPECTED (video.textTracks[0].kind == 'subtitles') OK
+
</ins><span class="cx"> *** Set to known values
</span><span class="cx"> ++ 'subtitles'
</span><span class="cx"> set via DOM
</span><span class="lines">@@ -34,7 +38,7 @@
</span><span class="cx"> EXPECTED (trackElement.kind == 'subtitles') OK
</span><span class="cx"> EXPECTED (trackElement.track.kind == 'subtitles') OK
</span><span class="cx"> EXPECTED (trackElement.getAttribute('kind') == 'subtitles') OK
</span><del>-EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem ipsum dolor sit amet, ') OK
</del><ins>+No text track cue with display id '-webkit-media-text-track-display' is currently visible
</ins><span class="cx"> 
</span><span class="cx"> ++ 'captions'
</span><span class="cx"> set via DOM
</span><span class="lines">@@ -49,7 +53,7 @@
</span><span class="cx"> EXPECTED (trackElement.kind == 'captions') OK
</span><span class="cx"> EXPECTED (trackElement.track.kind == 'captions') OK
</span><span class="cx"> EXPECTED (trackElement.getAttribute('kind') == 'captions') OK
</span><del>-EXPECTED (textTrackDisplayElement(video, 'display').innerText == 'Lorem ipsum dolor sit amet, ') OK
</del><ins>+No text track cue with display id '-webkit-media-text-track-display' is currently visible
</ins><span class="cx"> 
</span><span class="cx"> ++ 'descriptions'
</span><span class="cx"> set via DOM
</span></span></pre></div>
<a id="trunkLayoutTestsmediatracktrackkindhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/media/track/track-kind.html (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/media/track/track-kind.html        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/media/track/track-kind.html        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -42,16 +42,21 @@
</span><span class="cx">                 run(&quot;trackElement.removeAttribute('kind')&quot;);
</span><span class="cx">                 run(&quot;trackElement.kind = '&quot; + value + &quot;'&quot;);
</span><span class="cx">                 testExpected(&quot;trackElement.getAttribute('kind')&quot;, value);
</span><del>-                testExpected(&quot;trackElement.kind&quot;, &quot;subtitles&quot;);
-                testExpected(&quot;trackElement.track.kind&quot;, &quot;subtitles&quot;);
</del><ins>+                testExpected(&quot;trackElement.kind&quot;, &quot;metadata&quot;);
+                testExpected(&quot;trackElement.track.kind&quot;, &quot;metadata&quot;);
</ins><span class="cx">                 consoleWrite(&quot;&lt;b&gt; and via attribute&lt;/b&gt;&quot;);
</span><span class="cx">                 run(&quot;trackElement.removeAttribute('kind')&quot;);
</span><span class="cx">                 run(&quot;trackElement.setAttribute('kind', '&quot; + value + &quot;')&quot;);
</span><del>-                testExpected(&quot;trackElement.kind&quot;, &quot;subtitles&quot;);
-                testExpected(&quot;trackElement.track.kind&quot;, &quot;subtitles&quot;);
</del><ins>+                testExpected(&quot;trackElement.kind&quot;, &quot;metadata&quot;);
+                testExpected(&quot;trackElement.track.kind&quot;, &quot;metadata&quot;);
</ins><span class="cx">                 testExpected(&quot;trackElement.getAttribute('kind')&quot;, value);
</span><span class="cx">                 consoleWrite(&quot;&quot;);
</span><span class="cx"> 
</span><ins>+                run(&quot;trackElement.removeAttribute('kind')&quot;);
+                testExpected(&quot;trackElement.kind&quot;, &quot;subtitles&quot;);
+                testExpected(&quot;video.textTracks[0].kind&quot;, &quot;subtitles&quot;);
+                consoleWrite(&quot;&quot;);
+
</ins><span class="cx">                 consoleWrite(&quot;&lt;b&gt;*** Set to known values&lt;/b&gt;&quot;);
</span><span class="cx">                 setKind(&quot;subtitles&quot;);
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsmediatrackw3cinterfacesTextTrackkindhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/media/track/w3c/interfaces/TextTrack/kind.html (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/media/track/w3c/interfaces/TextTrack/kind.html        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/media/track/w3c/interfaces/TextTrack/kind.html        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -26,6 +26,6 @@
</span><span class="cx"> test(function(){
</span><span class="cx">     var track = document.createElement('track');
</span><span class="cx">     track.kind = 'captions\u0000';
</span><del>-    assert_equals(track.track.kind, 'subtitles');
</del><ins>+    assert_equals(track.track.kind, 'metadata');
</ins><span class="cx"> }, document.title+', \\u0000');
</span><del>-&lt;/script&gt;
</del><span class="cx">\ No newline at end of file
</span><ins>+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformiossimulatorimportedw3cwebplatformtestshtmldomreflectionembeddedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/LayoutTests/platform/ios-simulator/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -11822,141 +11822,141 @@
</span><span class="cx"> PASS track.kind: typeof IDL attribute 
</span><span class="cx"> PASS track.kind: IDL get with DOM attribute unset 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: 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 track.kind: 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;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: 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 track.kind: setAttribute() to undefined followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to undefined followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to undefined followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to 7 followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to 7 followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to 7 followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to 1.5 followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to 1.5 followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to 1.5 followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to true followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to true followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to true followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to false followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to false followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to false followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to object &quot;[object Object]&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to object &quot;[object Object]&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to NaN followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to NaN followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to NaN followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to Infinity followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to Infinity followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to Infinity followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to -Infinity followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to -Infinity followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to -Infinity followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to null followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to null followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to null followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to object &quot;test-toString&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to object &quot;test-toString&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to object &quot;test-valueOf&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;subtitles&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;subtitles&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xsubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xsubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xsubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;subtitles\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;subtitles\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;subtitles\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;ubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;ubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;ubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;SUBTITLES&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;SUBTITLES&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;captions&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;captions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xcaptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xcaptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xcaptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;captions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;captions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;captions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;aptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;aptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;aptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;CAPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;CAPTIONS&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;descriptions&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;descriptions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xdescriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xdescriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xdescriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;descriptions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;descriptions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;descriptions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;escriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;escriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;escriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;DESCRIPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;DESCRIPTIONS&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;chapters&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;chapters&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xchapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xchapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xchapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;chapters\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;chapters\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;chapters\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;hapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;hapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;hapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;CHAPTERS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;CHAPTERS&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;metadata&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;metadata&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;xmetadata&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;xmetadata&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;xmetadata&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;metadata\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;metadata\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;metadata\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;etadata&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: setAttribute() to &quot;etadata&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: setAttribute() to &quot;etadata&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: setAttribute() to &quot;METADATA&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: setAttribute() to &quot;METADATA&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: 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 track.kind: 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 track.kind: 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;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: 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 track.kind: IDL set to undefined should not throw 
</span><span class="cx"> PASS track.kind: IDL set to undefined followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to undefined followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to undefined followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to 7 should not throw 
</span><span class="cx"> PASS track.kind: IDL set to 7 followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to 7 followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to 7 followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to 1.5 should not throw 
</span><span class="cx"> PASS track.kind: IDL set to 1.5 followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to 1.5 followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to 1.5 followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to true should not throw 
</span><span class="cx"> PASS track.kind: IDL set to true followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to true followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to true followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to false should not throw 
</span><span class="cx"> PASS track.kind: IDL set to false followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to false followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to false followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to object &quot;[object Object]&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to object &quot;[object Object]&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to object &quot;[object Object]&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to object &quot;[object Object]&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to NaN should not throw 
</span><span class="cx"> PASS track.kind: IDL set to NaN followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to NaN followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to NaN followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to Infinity should not throw 
</span><span class="cx"> PASS track.kind: IDL set to Infinity followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to Infinity followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to Infinity followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to -Infinity should not throw 
</span><span class="cx"> PASS track.kind: IDL set to -Infinity followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to -Infinity followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to -Infinity followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to null should not throw 
</span><del>-FAIL track.kind: IDL set to null followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to null followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to object &quot;test-toString&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to object &quot;test-toString&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to object &quot;test-toString&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to object &quot;test-toString&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to object &quot;test-valueOf&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to object &quot;test-valueOf&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to object &quot;test-valueOf&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to object &quot;test-valueOf&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;subtitles&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;subtitles&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;subtitles&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xsubtitles&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xsubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xsubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xsubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;subtitles\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;subtitles\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;subtitles\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;subtitles\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;ubtitles&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;ubtitles&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;ubtitles&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;ubtitles&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;SUBTITLES&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;SUBTITLES&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;SUBTITLES&quot; followed by IDL get 
</span><span class="lines">@@ -11965,13 +11965,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;captions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xcaptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xcaptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xcaptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xcaptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;captions\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;captions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;captions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;captions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;aptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;aptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;aptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;aptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;CAPTIONS&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CAPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CAPTIONS&quot; followed by IDL get 
</span><span class="lines">@@ -11980,13 +11980,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;descriptions&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xdescriptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xdescriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xdescriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xdescriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;descriptions\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;descriptions\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;descriptions\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;descriptions\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;escriptions&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;escriptions&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;escriptions&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;escriptions&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;DESCRIPTIONS&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;DESCRIPTIONS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;DESCRIPTIONS&quot; followed by IDL get 
</span><span class="lines">@@ -11995,13 +11995,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;chapters&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xchapters&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xchapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xchapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xchapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;chapters\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;chapters\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;chapters\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;chapters\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;hapters&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;hapters&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;hapters&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;hapters&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;CHAPTERS&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CHAPTERS&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;CHAPTERS&quot; followed by IDL get 
</span><span class="lines">@@ -12010,13 +12010,13 @@
</span><span class="cx"> PASS track.kind: IDL set to &quot;metadata&quot; followed by IDL get 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xmetadata&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;xmetadata&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;xmetadata&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;xmetadata&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;metadata\0&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;metadata\0&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;metadata\0&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;metadata\0&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;etadata&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;etadata&quot; followed by getAttribute() 
</span><del>-FAIL track.kind: IDL set to &quot;etadata&quot; followed by IDL get assert_equals: expected &quot;metadata&quot; but got &quot;subtitles&quot;
</del><ins>+PASS track.kind: IDL set to &quot;etadata&quot; followed by IDL get 
</ins><span class="cx"> PASS track.kind: IDL set to &quot;METADATA&quot; should not throw 
</span><span class="cx"> PASS track.kind: IDL set to &quot;METADATA&quot; followed by getAttribute() 
</span><span class="cx"> PASS track.kind: IDL set to &quot;METADATA&quot; followed by IDL get 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/Source/WebCore/ChangeLog        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -1,3 +1,21 @@
</span><ins>+2016-09-11  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        HTMLTrackElement.kind's invalid value default should be the metadata state
+        https://bugs.webkit.org/show_bug.cgi?id=161840
+
+        Reviewed by Eric Carlson.
+
+        HTMLTrackElement.kind's invalid value default should be the metadata state,
+        not the subtitles state:
+        - https://html.spec.whatwg.org/#attr-track-kind
+
+        Chrome agrees with the specification.
+
+        No new tests, rebaselined existing tests.
+
+        * html/track/TextTrack.cpp:
+        (WebCore::TextTrack::setKindKeywordIgnoringASCIICase):
+
</ins><span class="cx"> 2016-09-11  Dave Hyatt  &lt;hyatt@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [CSS Parser] Add the main parser implementation
</span></span></pre></div>
<a id="trunkSourceWebCorehtmltrackTextTrackcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/track/TextTrack.cpp (205790 => 205791)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/track/TextTrack.cpp        2016-09-11 18:11:42 UTC (rev 205790)
+++ trunk/Source/WebCore/html/track/TextTrack.cpp        2016-09-11 22:30:05 UTC (rev 205791)
</span><span class="lines">@@ -202,6 +202,11 @@
</span><span class="cx"> 
</span><span class="cx"> void TextTrack::setKindKeywordIgnoringASCIICase(StringView keyword)
</span><span class="cx"> {
</span><ins>+    if (keyword.isNull()) {
+        // The missing value default is the subtitles state.
+        setKind(Kind::Subtitles);
+        return;
+    }
</ins><span class="cx">     if (equalLettersIgnoringASCIICase(keyword, &quot;captions&quot;))
</span><span class="cx">         setKind(Kind::Captions);
</span><span class="cx">     else if (equalLettersIgnoringASCIICase(keyword, &quot;chapters&quot;))
</span><span class="lines">@@ -214,14 +219,10 @@
</span><span class="cx">         setKind(Kind::Metadata);
</span><span class="cx">     else if (equalLettersIgnoringASCIICase(keyword, &quot;subtitles&quot;))
</span><span class="cx">         setKind(Kind::Subtitles);
</span><del>-#if !ENABLE(MEDIA_SOURCE)
-    // FIXME: This preserves the behavior of an older version of this code before refactoring.
-    // !ENABLE(MEDIA_SOURCE): unknown keywords all get turned into Subtitles.
-    // ENABLE(MEDIA_SOURCE): unknown keywords leave the old value for kind untouched.
-    // I am not sure that either of those is the correct behavior; should test and fix.
-    else
-        setKind(Kind::Subtitles);
-#endif
</del><ins>+    else {
+        // The invalid value default is the metadata state.
+        setKind(Kind::Metadata);
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> void TextTrack::setMode(Mode mode)
</span></span></pre>
</div>
</div>

</body>
</html>