Closed Bug 391025 Opened 18 years ago Closed 17 years ago

Loose <param> immediately closes all DIVs

Categories

(Core :: DOM: HTML Parser, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 364188

People

(Reporter: alex_av, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6 Blogs/Forums with embedded objects are rendered incorrectly. For example, in the following code there is one element inside BODY. But DOM model contains all DIV elements inside BODY, not nested, as in html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <body> <div id="rap"> <div id="main"> <div id="content"> <div class="post"> <p class="post-date">Sun 5 Aug 2007</p> <div class="post-info"> <h2 class="post-title">Title. </h2> Posted by test under </div> <div class="post-content"> <param name="movie" value="http://www.youtube.com/v/ROP2xYqsvLg"> </param> <param name="wmode" value="transparent"> </param> <embed src="http://www.youtube.com/v/ROP2xYqsvLg" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"> </embed> </p> Long text here. <div class="post-info"> </div> <div class="post-footer">&nbsp;</div> </div> </div> </div> </div> </div> </body> </html> Reproducible: Always Steps to Reproduce: 1. Save supplied HTML to file. 2. Open with firefox. 3. Examine DOM. Compare with HTML. Actual Results: DIV elements in code are not nested, though must be.
Attached file Test page. (obsolete) —
A bug example (the same HTML as in description).
Changing div class="post-content" to: <div class="post-content"> <object> <param name="movie" value="http://www.youtube.com/v/ROP2xYqsvLg"> </param> <param name="wmode" value="transparent"> </param> <embed src="http://www.youtube.com/v/ROP2xYqsvLg" type="application/x-shockwave-flash" wmode="transparent" height="350" width="425"> </embed> </object> </p> Long text here. <div class="post-info"> </div> <div class="post-footer">&nbsp;</div> </div> helps.
Attached file Simple testcase
A loose <param> (not inside an <object>) immediately closes all open <div> tags. Bizarre.
Attachment #275346 - Attachment is obsolete: true
Confirmed on Mac trunk.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Summary: EMBED tag into nested DIVs makes them a list (not tree) in DOM → Loose <param> immediately closes all DIVs
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: