<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - innerHTML getter for <style> and <script> in XML document is inconsistent with the setter"
href="https://bugs.webkit.org/show_bug.cgi?id=157052">157052</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>innerHTML getter for <style> and <script> in XML document is inconsistent with the setter
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>WebKit Nightly Build
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>OS</th>
<td>Unspecified
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>HTML DOM
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bzbarsky@mit.edu
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=277423" name="attach_277423" title="Testcase">attachment 277423</a> <a href="attachment.cgi?id=277423&action=edit" title="Testcase">[details]</a></span>
Testcase
STEPS TO REPRODUCE: Load attached testcase from a .xhtml filename.
EXPECTED RESULTS: The two alerts should show the same text.
ACTUAL RESULTS: Two alerts showing different text.
ADDITIONAL INFORMATION: Looks like the innerHTML setter on script/style sets the textContent even in XML, but the getter serializes as XML and ends up escaping things.
See also <a href="https://github.com/w3c/DOM-Parsing/issues/6">https://github.com/w3c/DOM-Parsing/issues/6</a> and <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=605973">https://bugs.chromium.org/p/chromium/issues/detail?id=605973</a> for the Blink equivalent of this bug.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>