Closed Bug 277045 Opened 20 years ago Closed 20 years ago

Incorrect DOM created when using valid short-style XHTML close tags

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 268477

People

(Reporter: WCLDNXLMETFV, Assigned: bugzilla)

Details

DOM creation and final rendering of the page are both affected.  Please compare
the DOMs of these 2 XHTML-equivalent examples, this is not good.

Works:

<!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>
<title>Good DIVs</title>
</head>
<body>
<p>The following DIV elements create a good DOM.</p>

<div id="div1" style="background-color:purple;width:200px;height:200px;"></div>
<div id="div2" style="background-color:yellow;width:200px;height:200px;"></div>

</body>
</html>
-----------
Broken:

<!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>
<title>Bad DIVs</title>
</head>
<body>
<p>The following DIV elements create a seriously messed up DOM.</p>

<div id="div1" style="background-color:purple;width:200px;height:200px;" />
<div id="div2" style="background-color:yellow;width:200px;height:200px;" />

</body>
</html>
Please read bug 268477, comment 1

*** This bug has been marked as a duplicate of 268477 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.