[Webkit-unassigned] [Bug 40068] New: Second document.write() of external script fails
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 2 10:25:32 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=40068
Summary: Second document.write() of external script fails
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Minor
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tonyg at chromium.org
CC: eric at webkit.org
The second document.write() of an external script fails. Here's a minimal test case.
This alerts "[object HTMLScriptElement]", "null":
<script>
document.write('<script src=ignored.js id=foo></scri'+'pt>');
alert(document.getElementById('foo'));
document.write('<script src=ignored.js id=bar></scri'+'pt>');
alert(document.getElementById('bar'));
</script>
I'd expect it to work like writing two inline scripts. This alerts "[object HTMLScriptElement]", "[object HTMLScriptElement]":
<script>
document.write('<script id=foo></scri'+'pt>');
alert(document.getElementById('foo'));
document.write('<script id=bar></scri'+'pt>');
alert(document.getElementById('bar'));
</script>
--
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