<!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>[210767] 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/210767">210767</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2017-01-14 09:35:56 -0800 (Sat, 14 Jan 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>Align the innerText setter with the HTML spec and Gecko
https://bugs.webkit.org/show_bug.cgi?id=160971

Reviewed by Alex Christensen.

LayoutTests/imported/w3c:

Rebaseline several W3C tests now that more checks are passing.

* web-platform-tests/domparsing/createContextualFragment-expected.txt:
* web-platform-tests/innerText/setter-expected.txt:

Source/WebCore:

Align the innerText setter and createContextualFragment() with the
HTML specification and Gecko. In particular, they no longer throw
when the context element is a void element. This behavior was there
to match an old IE behavior but Edge dropped this behavior.

Test: fast/dom/br-set-outerText.html

* dom/Element.cpp:
* dom/Element.h:
* editing/markup.cpp:
(WebCore::createContextualFragment):
* html/HTMLElement.cpp:
(WebCore::HTMLElement::setInnerText):
(WebCore::HTMLElement::setOuterText):

LayoutTests:

Add test coverage for outerText, which is non-standard.

* fast/dom/br-set-outerText-expected.txt: Added.
* fast/dom/br-set-outerText.html: Added.</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="#trunkLayoutTestsimportedw3cwebplatformtestsdomparsingcreateContextualFragmentexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/domparsing/createContextualFragment-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsinnerTextsetterexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/innerText/setter-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomElementcpp">trunk/Source/WebCore/dom/Element.cpp</a></li>
<li><a href="#trunkSourceWebCoredomElementh">trunk/Source/WebCore/dom/Element.h</a></li>
<li><a href="#trunkSourceWebCoreeditingmarkupcpp">trunk/Source/WebCore/editing/markup.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLElementcpp">trunk/Source/WebCore/html/HTMLElement.cpp</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastdombrsetouterTextexpectedtxt">trunk/LayoutTests/fast/dom/br-set-outerText-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdombrsetouterTexthtml">trunk/LayoutTests/fast/dom/br-set-outerText.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/LayoutTests/ChangeLog        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2017-01-14  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Align the innerText setter with the HTML spec and Gecko
+        https://bugs.webkit.org/show_bug.cgi?id=160971
+
+        Reviewed by Alex Christensen.
+
+        Add test coverage for outerText, which is non-standard.
+
+        * fast/dom/br-set-outerText-expected.txt: Added.
+        * fast/dom/br-set-outerText.html: Added.
+
</ins><span class="cx"> 2017-01-13  Ryan Haddad  &lt;ryanhaddad@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Marking inspector/worker/debugger-scripts.html as flaky on macOS.
</span></span></pre></div>
<a id="trunkLayoutTestsfastdombrsetouterTextexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/br-set-outerText-expected.txt (0 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/br-set-outerText-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/dom/br-set-outerText-expected.txt        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -0,0 +1,12 @@
</span><ins>+Tests that br.outerText does not throw
+
+On success, you will see a series of &quot;PASS&quot; messages, followed by &quot;TEST COMPLETE&quot;.
+
+
+PASS br.outerText = 'PASS'; did not throw exception.
+PASS br.parentNode is null
+PASS target.firstChild.data is &quot;PASS&quot;
+PASS successfullyParsed is true
+
+TEST COMPLETE
+PASS
</ins></span></pre></div>
<a id="trunkLayoutTestsfastdombrsetouterTexthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/br-set-outerText.html (0 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/br-set-outerText.html                                (rev 0)
+++ trunk/LayoutTests/fast/dom/br-set-outerText.html        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;body&gt;
+&lt;div id=&quot;target&quot;&gt;&lt;/div&gt;
+&lt;script src=&quot;../../resources/js-test-pre.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+description(&quot;Tests that br.outerText does not throw&quot;);
+
+var target = document.getElementById(&quot;target&quot;);
+var br = document.createElement(&quot;br&quot;);
+target.appendChild(br);
+shouldNotThrow(&quot;br.outerText = 'PASS';&quot;);
+shouldBeNull(&quot;br.parentNode&quot;);
+shouldBeEqualToString(&quot;target.firstChild.data&quot;, &quot;PASS&quot;);
+&lt;/script&gt;
+&lt;script src=&quot;../../resources/js-test-post.js&quot;&gt;&lt;/script&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -1,3 +1,15 @@
</span><ins>+2017-01-14  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Align the innerText setter with the HTML spec and Gecko
+        https://bugs.webkit.org/show_bug.cgi?id=160971
+
+        Reviewed by Alex Christensen.
+
+        Rebaseline several W3C tests now that more checks are passing.
+
+        * web-platform-tests/domparsing/createContextualFragment-expected.txt:
+        * web-platform-tests/innerText/setter-expected.txt:
+
</ins><span class="cx"> 2017-01-13  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Import innerText/ w3c web-platform-tests
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomparsingcreateContextualFragmentexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/domparsing/createContextualFragment-expected.txt (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/domparsing/createContextualFragment-expected.txt        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/domparsing/createContextualFragment-expected.txt        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -4,26 +4,26 @@
</span><span class="cx"> PASS Simple test with paragraphs 
</span><span class="cx"> PASS Don't auto-create &lt;body&gt; when applied to &lt;html&gt; 
</span><span class="cx"> PASS &lt;script&gt;s should be run when appended to the document (but not before) 
</span><del>-FAIL createContextualFragment should work even when the context is &lt;area&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;base&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;basefont&gt; The operation is not supported.
</del><ins>+PASS createContextualFragment should work even when the context is &lt;area&gt; 
+PASS createContextualFragment should work even when the context is &lt;base&gt; 
+PASS createContextualFragment should work even when the context is &lt;basefont&gt; 
</ins><span class="cx"> PASS createContextualFragment should work even when the context is &lt;bgsound&gt; 
</span><del>-FAIL createContextualFragment should work even when the context is &lt;br&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;col&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;embed&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;frame&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;hr&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;img&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;input&gt; The operation is not supported.
</del><ins>+PASS createContextualFragment should work even when the context is &lt;br&gt; 
+PASS createContextualFragment should work even when the context is &lt;col&gt; 
+PASS createContextualFragment should work even when the context is &lt;embed&gt; 
+PASS createContextualFragment should work even when the context is &lt;frame&gt; 
+PASS createContextualFragment should work even when the context is &lt;hr&gt; 
+PASS createContextualFragment should work even when the context is &lt;img&gt; 
+PASS createContextualFragment should work even when the context is &lt;input&gt; 
</ins><span class="cx"> PASS createContextualFragment should work even when the context is &lt;keygen&gt; 
</span><del>-FAIL createContextualFragment should work even when the context is &lt;link&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;meta&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;param&gt; The operation is not supported.
-FAIL createContextualFragment should work even when the context is &lt;source&gt; The operation is not supported.
</del><ins>+PASS createContextualFragment should work even when the context is &lt;link&gt; 
+PASS createContextualFragment should work even when the context is &lt;meta&gt; 
+PASS createContextualFragment should work even when the context is &lt;param&gt; 
+PASS createContextualFragment should work even when the context is &lt;source&gt; 
</ins><span class="cx"> PASS createContextualFragment should work even when the context is &lt;track&gt; 
</span><del>-FAIL createContextualFragment should work even when the context is &lt;wbr&gt; The operation is not supported.
</del><ins>+PASS createContextualFragment should work even when the context is &lt;wbr&gt; 
</ins><span class="cx"> PASS createContextualFragment should work even when the context is &lt;menuitem&gt; 
</span><del>-FAIL createContextualFragment should work even when the context is &lt;image&gt; The operation is not supported.
</del><ins>+PASS createContextualFragment should work even when the context is &lt;image&gt; 
</ins><span class="cx"> PASS &lt;html&gt; and &lt;body&gt; must work the same, 1 
</span><span class="cx"> PASS &lt;html&gt; and &lt;body&gt; must work the same, 2 
</span><span class="cx"> PASS Implicit &lt;body&gt; creation 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsinnerTextsetterexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/innerText/setter-expected.txt (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/innerText/setter-expected.txt        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/innerText/setter-expected.txt        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -1,3 +1,4 @@
</span><ins>+abc
</ins><span class="cx"> 
</span><span class="cx"> PASS Simplest possible test 
</span><span class="cx"> PASS Newlines convert to &lt;br&gt; in non-white-space:pre elements 
</span><span class="lines">@@ -26,33 +27,33 @@
</span><span class="cx"> PASS Assigning the empty string 
</span><span class="cx"> PASS Assigning null 
</span><span class="cx"> PASS Assigning undefined 
</span><del>-FAIL innerText on &lt;area&gt; element The object can not be modified.
-FAIL innerText on &lt;base&gt; element The object can not be modified.
-FAIL innerText on &lt;basefont&gt; element The object can not be modified.
</del><ins>+PASS innerText on &lt;area&gt; element 
+PASS innerText on &lt;base&gt; element 
+PASS innerText on &lt;basefont&gt; element 
</ins><span class="cx"> PASS innerText on &lt;bgsound&gt; element 
</span><del>-FAIL innerText on &lt;br&gt; element The object can not be modified.
-FAIL innerText on &lt;col&gt; element The object can not be modified.
-FAIL innerText on &lt;embed&gt; element The object can not be modified.
-FAIL innerText on &lt;frame&gt; element The object can not be modified.
-FAIL innerText on &lt;hr&gt; element The object can not be modified.
-FAIL innerText on &lt;image&gt; element The object can not be modified.
-FAIL innerText on &lt;img&gt; element The object can not be modified.
-FAIL innerText on &lt;input&gt; element The object can not be modified.
</del><ins>+PASS innerText on &lt;br&gt; element 
+PASS innerText on &lt;col&gt; element 
+PASS innerText on &lt;embed&gt; element 
+PASS innerText on &lt;frame&gt; element 
+PASS innerText on &lt;hr&gt; element 
+PASS innerText on &lt;image&gt; element 
+PASS innerText on &lt;img&gt; element 
+PASS innerText on &lt;input&gt; element 
</ins><span class="cx"> PASS innerText on &lt;keygen&gt; element 
</span><del>-FAIL innerText on &lt;link&gt; element The object can not be modified.
</del><ins>+PASS innerText on &lt;link&gt; element 
</ins><span class="cx"> PASS innerText on &lt;menuitem&gt; element 
</span><del>-FAIL innerText on &lt;meta&gt; element The object can not be modified.
-FAIL innerText on &lt;param&gt; element The object can not be modified.
-FAIL innerText on &lt;source&gt; element The object can not be modified.
</del><ins>+PASS innerText on &lt;meta&gt; element 
+PASS innerText on &lt;param&gt; element 
+PASS innerText on &lt;source&gt; element 
</ins><span class="cx"> PASS innerText on &lt;track&gt; element 
</span><del>-FAIL innerText on &lt;wbr&gt; element The object can not be modified.
-FAIL innerText on &lt;colgroup&gt; element The object can not be modified.
-FAIL innerText on &lt;frameset&gt; element The object can not be modified.
-FAIL innerText on &lt;head&gt; element The object can not be modified.
-FAIL innerText on &lt;html&gt; element The object can not be modified.
-FAIL innerText on &lt;table&gt; element The object can not be modified.
-FAIL innerText on &lt;tbody&gt; element The object can not be modified.
-FAIL innerText on &lt;tfoot&gt; element The object can not be modified.
-FAIL innerText on &lt;thead&gt; element The object can not be modified.
-FAIL innerText on &lt;tr&gt; element The object can not be modified.
</del><ins>+PASS innerText on &lt;wbr&gt; element 
+PASS innerText on &lt;colgroup&gt; element 
+PASS innerText on &lt;frameset&gt; element 
+PASS innerText on &lt;head&gt; element 
+PASS innerText on &lt;html&gt; element 
+PASS innerText on &lt;table&gt; element 
+PASS innerText on &lt;tbody&gt; element 
+PASS innerText on &lt;tfoot&gt; element 
+PASS innerText on &lt;thead&gt; element 
+PASS innerText on &lt;tr&gt; element 
</ins><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/Source/WebCore/ChangeLog        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -1,3 +1,25 @@
</span><ins>+2017-01-14  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Align the innerText setter with the HTML spec and Gecko
+        https://bugs.webkit.org/show_bug.cgi?id=160971
+
+        Reviewed by Alex Christensen.
+
+        Align the innerText setter and createContextualFragment() with the
+        HTML specification and Gecko. In particular, they no longer throw
+        when the context element is a void element. This behavior was there
+        to match an old IE behavior but Edge dropped this behavior.
+
+        Test: fast/dom/br-set-outerText.html
+
+        * dom/Element.cpp:
+        * dom/Element.h:
+        * editing/markup.cpp:
+        (WebCore::createContextualFragment):
+        * html/HTMLElement.cpp:
+        (WebCore::HTMLElement::setInnerText):
+        (WebCore::HTMLElement::setOuterText):
+
</ins><span class="cx"> 2017-01-13  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Remove ENABLE(DETAILS_ELEMENT) guards
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.cpp (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.cpp        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/Source/WebCore/dom/Element.cpp        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -3578,44 +3578,6 @@
</span><span class="cx">     return URL(base, attribute.value()).string();
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool Element::ieForbidsInsertHTML() const
-{
-    // FIXME: Supposedly IE disallows setting innerHTML, outerHTML
-    // and createContextualFragment on these tags. We have no tests to
-    // verify this however, so this list could be totally wrong.
-    // This list was moved from the previous endTagRequirement() implementation.
-    // This is also called from editing and assumed to be the list of tags
-    // for which no end tag should be serialized. It's unclear if the list for
-    // IE compat and the list for serialization sanity are the same.
-    if (hasTagName(areaTag)
-        || hasTagName(baseTag)
-        || hasTagName(basefontTag)
-        || hasTagName(brTag)
-        || hasTagName(colTag)
-        || hasTagName(embedTag)
-        || hasTagName(frameTag)
-        || hasTagName(hrTag)
-        || hasTagName(imageTag)
-        || hasTagName(imgTag)
-        || hasTagName(inputTag)
-        || hasTagName(linkTag)
-        || hasTagName(metaTag)
-        || hasTagName(paramTag)
-        || hasTagName(sourceTag)
-        || hasTagName(wbrTag))
-        return true;
-    // FIXME: I'm not sure why dashboard mode would want to change the
-    // serialization of &lt;canvas&gt;, that seems like a bad idea.
-#if ENABLE(DASHBOARD_SUPPORT)
-    if (hasTagName(canvasTag)) {
-        Settings* settings = document().settings();
-        if (settings &amp;&amp; settings-&gt;usesDashboardBackwardCompatibilityMode())
-            return true;
-    }
-#endif
-    return false;
-}
-
</del><span class="cx"> ExceptionOr&lt;Node*&gt; Element::insertAdjacent(const String&amp; where, Ref&lt;Node&gt;&amp;&amp; newChild)
</span><span class="cx"> {
</span><span class="cx">     // In Internet Explorer if the element has no parent and where is &quot;beforeBegin&quot; or &quot;afterEnd&quot;,
</span></span></pre></div>
<a id="trunkSourceWebCoredomElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Element.h (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Element.h        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/Source/WebCore/dom/Element.h        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -313,8 +313,6 @@
</span><span class="cx">     WEBCORE_EXPORT ExceptionOr&lt;void&gt; insertAdjacentHTML(const String&amp; where, const String&amp; html);
</span><span class="cx">     WEBCORE_EXPORT ExceptionOr&lt;void&gt; insertAdjacentText(const String&amp; where, const String&amp; text);
</span><span class="cx"> 
</span><del>-    bool ieForbidsInsertHTML() const;
-
</del><span class="cx">     const RenderStyle* computedStyle(PseudoId = NOPSEUDO) override;
</span><span class="cx"> 
</span><span class="cx">     bool needsStyleInvalidation() const;
</span></span></pre></div>
<a id="trunkSourceWebCoreeditingmarkupcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/editing/markup.cpp (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/editing/markup.cpp        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/Source/WebCore/editing/markup.cpp        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -949,13 +949,6 @@
</span><span class="cx"> 
</span><span class="cx"> ExceptionOr&lt;Ref&lt;DocumentFragment&gt;&gt; createContextualFragment(Element&amp; element, const String&amp; markup, ParserContentPolicy parserContentPolicy)
</span><span class="cx"> {
</span><del>-    if (element.ieForbidsInsertHTML())
-        return Exception { NOT_SUPPORTED_ERR };
-
-    if (element.hasTagName(colTag) || element.hasTagName(colgroupTag) || element.hasTagName(framesetTag)
-        || element.hasTagName(headTag) || element.hasTagName(styleTag) || element.hasTagName(titleTag))
-        return Exception { NOT_SUPPORTED_ERR };
-
</del><span class="cx">     auto result = createFragmentForInnerOuterHTML(element, markup, parserContentPolicy);
</span><span class="cx">     if (result.hasException())
</span><span class="cx">         return result.releaseException();
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLElement.cpp (210766 => 210767)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLElement.cpp        2017-01-14 16:19:33 UTC (rev 210766)
+++ trunk/Source/WebCore/html/HTMLElement.cpp        2017-01-14 17:35:56 UTC (rev 210767)
</span><span class="lines">@@ -470,20 +470,6 @@
</span><span class="cx">     return WTFMove(fragment);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-static inline bool shouldProhibitSetInnerOuterText(const HTMLElement&amp; element)
-{
-    return element.hasTagName(colTag)
-        || element.hasTagName(colgroupTag)
-        || element.hasTagName(framesetTag)
-        || element.hasTagName(headTag)
-        || element.hasTagName(htmlTag)
-        || element.hasTagName(tableTag)
-        || element.hasTagName(tbodyTag)
-        || element.hasTagName(tfootTag)
-        || element.hasTagName(theadTag)
-        || element.hasTagName(trTag);
-}
-
</del><span class="cx"> // Returns the conforming 'dir' value associated with the state the attribute is in (in its canonical case), if any,
</span><span class="cx"> // or the empty string if the attribute is in a state that has no associated keyword value or if the attribute is
</span><span class="cx"> // not in a defined state (e.g. the attribute is missing and there is no missing value default).
</span><span class="lines">@@ -514,11 +500,6 @@
</span><span class="cx"> 
</span><span class="cx"> ExceptionOr&lt;void&gt; HTMLElement::setInnerText(const String&amp; text)
</span><span class="cx"> {
</span><del>-    if (ieForbidsInsertHTML())
-        return Exception { NO_MODIFICATION_ALLOWED_ERR };
-    if (shouldProhibitSetInnerOuterText(*this))
-        return Exception { NO_MODIFICATION_ALLOWED_ERR };
-
</del><span class="cx">     // FIXME: This doesn't take whitespace collapsing into account at all.
</span><span class="cx"> 
</span><span class="cx">     if (!text.contains('\n') &amp;&amp; !text.contains('\r')) {
</span><span class="lines">@@ -551,11 +532,6 @@
</span><span class="cx"> 
</span><span class="cx"> ExceptionOr&lt;void&gt; HTMLElement::setOuterText(const String&amp; text)
</span><span class="cx"> {
</span><del>-    if (ieForbidsInsertHTML())
-        return Exception { NO_MODIFICATION_ALLOWED_ERR };
-    if (shouldProhibitSetInnerOuterText(*this))
-        return Exception { NO_MODIFICATION_ALLOWED_ERR };
-
</del><span class="cx">     RefPtr&lt;ContainerNode&gt; parent = parentNode();
</span><span class="cx">     if (!parent)
</span><span class="cx">         return Exception { NO_MODIFICATION_ALLOWED_ERR };
</span></span></pre>
</div>
</div>

</body>
</html>