Closed
Bug 265664
Opened 21 years ago
Closed 21 years ago
Firefox treats line-break tag differently under XHTML 1.0 Strict and 1.1
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: david, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
I have read the W3C Recommendations, and none of them relate to changing the
handling of the <br /> tag...
When a document has an XHTML 1.0 Strict or XHTML 1.1 DTD Declaritive, Firefox
(or more rather... Gecko) renders the page with a "larger" line-break rather
than a simple break when it encounters a <br /> tag
Page rendering goes back to "as expected" when I use a XHTML 1.0 Transitional
DTD Declaritive
Reproducible: Always
Steps to Reproduce:
My code (with some classes and content removed for obvious reasons):
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!-- *snip!* -->
<body>
<div id="DocumentContainer">
<div id="DocumentTop"><img src="IMG/top-left.jpg" alt="" title=""
id="DocumentTopImage" /></div>
<div id="DocumentContent-Container">
<div class="DocumentContent" id="ContentOne">
<h1></h1>
<h2></h2>
<p></p>
<p></p>
<p></p>
</div>
</div>
<div id="DocumentBot">
<div id="DocumentBotMenu">
<a href=""><img src="IMG/mnu-1-1.gif" alt="" title="" /></a><a href=""><img
src="IMG/mnu-1-2.gif" alt="" title="" /></a><a href=""><img
src="IMG/mnu-1-3.gif" alt="" title="" /></a><br />
<a href=""><img src="IMG/mnu-2-1.gif" alt="" title="" /></a><a href=""><img
src="IMG/mnu-2-2.gif" alt="" title="" /></a><a href=""><img
src="IMG/mnu-2-3.gif" alt="" title="" /></a>
</div>
</div>
</div>
</body>
</html>
Actual Results:
Firefox renders the <br /> tag differently, causing spacing between the two
image lines
Expected Results:
Have not have rendered any space between the lines
Updated•21 years ago
|
Assignee: firefox → nobody
Component: General → Layout
Product: Firefox → Browser
QA Contact: firefox.general → core.layout
Version: unspecified → Trunk
Comment 1•21 years ago
|
||
This is correct. The default vertical alignment of inline images is to the
baseline of the text. See
http://www.w3.org/TR/CSS21/visudet.html#propdef-vertical-align
This is one of the quirks we apply in quirks mode. See
http://www.mozilla.org/docs/web-developer/quirks/
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•