Bug 5908 - <img> should start implied rendering of <body> when no <body> tag present
Summary: <img> should start implied rendering of <body> when no <body> tag present
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 420+
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: https://bugzilla.mozilla.org/attachme...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-01 12:24 PST by Samuel Sidler
Modified: 2012-08-14 16:19 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Sidler 2005-12-01 12:24:28 PST
The URL is a testcase. Please see Mozilla bug 318365:
https://bugzilla.mozilla.org/show_bug.cgi?id=318365
Comment 1 Joost de Valk (AlthA) 2006-02-07 14:22:10 PST
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.
Comment 2 Samuel Sidler 2006-02-07 14:44:32 PST
(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.
Comment 3 Samuel Sidler 2006-02-07 14:44:58 PST
CCing Joost, since he's the one who closed this bug.
Comment 4 Joost de Valk (AlthA) 2006-02-08 11:42:58 PST
I did read it but it must have been late, soz, confirming now :)
Comment 5 David Kilzer (:ddkilzer) 2007-01-06 04:15:57 PST
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).

Comment 6 David Kilzer (:ddkilzer) 2007-01-06 04:17:49 PST
Also, the DOM Inspector in ToT WebKit shows a <body> element has been created after loading this URL:

data:text/html,<img>

Comment 7 Alexey Proskuryakov 2012-08-14 16:19:35 PDT
This has been fixed long ago.