Closed
Bug 369609
Opened 19 years ago
Closed 19 years ago
div with short closing (<div />) breaks the divs layouts
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 162653
People
(Reporter: 6sense, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
when I write:
<div><div>aa<div /></div><div>bb</div></div>
div with text bb shown inside the div with text aa
if I write
<div><div>aa<div></div></div><div>bb</div></div>
everything shown OK
I think it is simple bug that can be simply fixed.
I usualy meet this bug when transforms xml with
xsl and put it as innerHTML in javascript. When
xml transformed to HTML throw xsl usally recieved
first form of HTML and not seccond and it is breaks
my pages.
Reproducible: Always
Steps to Reproduce:
See in browser the html that containts:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html>
<head>
<style>
div { border: black 1px solid; margin: 3px; }
</style>
</head>
<body>
<div><div>aa<div /></div><div>bb</div></div>
</body>
</html>
Actual Results:
div with text bb inside the div with text aa
Expected Results:
div with text bb must be outside the div with text aa
It is imposible in yours bugzilla to sets more oparating system where this bug exists, but I can says that I checked that bug exists also in WinXP. May be at home I will check it with linux
xml served as html is not xml, it's html :) ...
-----
see --> testcases.
Comment 5•19 years ago
|
||
If you want the page to be parsed as XML, you have to use an XML mime type. We can't make the HTML parser treat <foo/> as self-closing without breaking lots of pages.
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•