Bug 15455

Summary: XML parser modifies the document when using foo.innerHtml = "some string"
Product: WebKit Reporter: Lars Knoll <lars.knoll>
Component: XMLAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Other   
OS: OS X 10.4   

Lars Knoll
Reported 2007-10-10 14:07:41 PDT
The XMLTokenizer.cpp has a constructor that takes a document fragment and parses XML into this fragment (which is used at least for handling innerHtml, maybe other places as well). While parsing this fragment, the parser calls lots of methods on the document, amongst others finishedParsing(), which can lead to memory corruption when innerHtml is used form within the onload handler.
Attachments
Alexey Proskuryakov
Comment 1 2007-10-11 00:54:07 PDT
*** This bug has been marked as a duplicate of 15456 ***
Note You need to log in before you can comment on or make changes to this bug.