RESOLVED FIXED 15467
Setting innerHTML to blank string in application/xhtml+xml mode throws DOM Exception 7
https://bugs.webkit.org/show_bug.cgi?id=15467
Summary Setting innerHTML to blank string in application/xhtml+xml mode throws DOM Ex...
Christopher Rogers
Reported 2007-10-11 08:43:11 PDT
I believe the summary says everything. I have tested this on Mac OS X 10.4 and Windows with the nightly build. Interestingly enough setting the innerHTML of an element to ' ' works. I came across this bug using Prototype 1.6.0 RC0, which sets innerHTML to a blank string before inserting a new DOM node. FYI, DOM Exception 7 is NO_MODIFICATION_ALLOWED_ERR.
Attachments
Basic test (331 bytes, application/xhtml+xml)
2007-10-11 08:44 PDT, Christopher Rogers
no flags
proposed fix (3.19 KB, patch)
2007-10-26 11:45 PDT, Alexey Proskuryakov
darin: review+
Christopher Rogers
Comment 1 2007-10-11 08:44:13 PDT
Created attachment 16630 [details] Basic test
David Kilzer (:ddkilzer)
Comment 2 2007-10-13 01:30:31 PDT
Test case passes on Firefox 2.0.0.7 and Opera 9.22, but fails on a local debug build of WebKit r26376 with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218).
Alexey Proskuryakov
Comment 3 2007-10-26 11:45:45 PDT
Created attachment 16887 [details] proposed fix
Darin Adler
Comment 4 2007-10-26 11:56:06 PDT
Comment on attachment 16887 [details] proposed fix r=me
Alexey Proskuryakov
Comment 5 2007-10-27 01:27:51 PDT
Committed revision 27144.
Note You need to log in before you can comment on or make changes to this bug.