Bug 5908
| Summary: | <img> should start implied rendering of <body> when no <body> tag present | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Samuel Sidler <samuel.sidler> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | ap, gavin.sharp, ian, joost |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | All | ||
| OS: | All | ||
| URL: | https://bugzilla.mozilla.org/attachment.cgi?id=204702 | ||
Samuel Sidler
The URL is a testcase. Please see Mozilla bug 318365:
https://bugzilla.mozilla.org/show_bug.cgi?id=318365
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Joost de Valk (AlthA)
Marking as wontfix for the same reasons as the referred mozilla bug was marked as invalid: we're matching IE behavior here, and that's goog enough.
Samuel Sidler
(In reply to comment #1)
> Marking as wontfix for the same reasons as the referred mozilla bug was marked
> as invalid: we're matching IE behavior here, and that's goog enough.
>
Did you even read that bug?
The bug notes that Safari/webkit is not starting an implied <body> tag at the presence of an <img> tag. The Mozilla bug was marked INVALID because *they* were matching IE's behavior. Webkit, however, is not.
This is still a valid bug. Reopening.
Samuel Sidler
CCing Joost, since he's the one who closed this bug.
Joost de Valk (AlthA)
I did read it but it must have been late, soz, confirming now :)
David Kilzer (:ddkilzer)
Using Hixie's Live DOM Viewer, it appears that an implicit <body> tag is being created if you paste the contents of the URL into the top window (or if you just paste "<img>" in there).
http://software.hixie.ch/utilities/js/live-dom-viewer/
Tested with a locally-built debug build of WebKit r18636 with Safari 2.0.4 (419.3) on Mac OS X 10.4.8 (8L127).
David Kilzer (:ddkilzer)
Also, the DOM Inspector in ToT WebKit shows a <body> element has been created after loading this URL:
data:text/html,<img>
Alexey Proskuryakov
This has been fixed long ago.