[Webkit-unassigned] [Bug 64778] New: Undefined behavior for EOF in foreign content mode in HTML5 parser
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 18 20:20:15 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=64778
Summary: Undefined behavior for EOF in foreign content mode in
HTML5 parser
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: simonjam at chromium.org
CC: inferno at chromium.org, tonyg at chromium.org
Blocks: 64419
The spec does not define how to handle end-of-file while in foreign content mode. For example:
<svg>
<g>
<use xlink:href="#test"/>
<rect id="test">
<script>
document.body.innerHTML = "PASS";
Should the script execute when it reaches the end of the file? If not, it leads to problems with the <use> tag, because recalcStyle() will try to build a shadow DOM for it. The shadow DOM copies the <script>, but since the parser didn't execute the script, it is still un-started, so the copy will execute when it's inserted into the shadow DOM.
The correct behavior should be defined in the HTML5 spec, then we need to fix WebKit.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list