Bug 4712 - Javascript inserted using innerHTML is not parsed
Summary: Javascript inserted using innerHTML is not parsed
Status: RESOLVED DUPLICATE of bug 4403
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 412
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-28 09:24 PDT by Matt Kane
Modified: 2005-08-31 00:46 PDT (History)
0 users

See Also:


Attachments
Test case (509 bytes, text/html)
2005-08-28 09:26 PDT, Matt Kane
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Kane 2005-08-28 09:24:31 PDT
If the innerHTML of an element is set to an HTML string that includes javascript elements, the script is not 
executed. No error is logged.
Comment 1 Matt Kane 2005-08-28 09:26:03 PDT
Created attachment 3624 [details]
Test case

If Firefox, the testcase displays an alert when loaded and another when the
link is clicked. Safari does neither.
Comment 2 Joost de Valk (AlthA) 2005-08-31 00:46:53 PDT

*** This bug has been marked as a duplicate of 4403 ***