Summary: | document.write to an image document fails | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||
Component: | DOM | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | NEW --- | ||||||
Severity: | Normal | CC: | andersca, eric, ian | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=189917 | ||||||
Attachments: |
|
Description
Alexey Proskuryakov
2009-04-25 13:00:48 PDT
Created attachment 29798 [details]
test case (will assert)
This no longer fails with an assertion as of r51997, but it doesn't work either. Seems document.write should just be ignored for image documents, like how it is for XML. Is this what HTML5 now says? My understanding was that document.write() is supposed to behave exactly the same as it does for any HTML documents. HTML5 throws an exception in XML docs: http://www.whatwg.org/specs/web-apps/current-work/multipage/apis-in-html-documents.html#document.write() But doesn't talk about image documents. Perhaps those need to have the generic write handling. |