Closed
Bug 294313
Opened 20 years ago
Closed 19 years ago
[quirks]link in dd loses indent if dt is preceeded by an anchor
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dnsurber, Unassigned)
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 The following HTML renders incorrectly. The text following the link is not indented appropriately. Removing the link or removing DOCTYPE or the anchor that preceeds the dt makes the problem go away. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> </head> <body> <dl> <a name="lazy_dog"> <dt>lazy dog</dt> <dd> The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the <a href="#target">lazy</a> dog. </dd> <a name="target"> </dl> </body> </html> Reproducible: Always Steps to Reproduce: 1. Save the above HTML as a file 2. Open the file with Firefox 1.0.4 3. Actual Results: Page renders incorrectly. The link and the text after it are not indented. Expected Results: The link and following text should be flowed in line and indented as appropriate for a dd item.
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
<title> added, as validator didn´t accept and empty head, and encoding added. </a> added, and position of <a>..</a> changed to validate.
Comment 3•20 years ago
|
||
Reporters testcase: http://validator.w3.org/check?uri=https%3A%2F%2Fbugzilla.mozilla.org%2Fattachment.cgi%3Fid%3D183748&charset=%28detect+automatically%29&doctype=%28detect+automatically%29&ss=1 Validating testcase: http://validator.w3.org/check?uri=https%3A%2F%2Fbugzilla.mozilla.org%2Fattachment.cgi%3Fid%3D183751&charset=%28detect+automatically%29&doctype=Inline&ss=1&verbose=1
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 4•20 years ago
|
||
I understand that the html does not validate, but most of the html on the net doesn't validate. IE renders the original test case correctly. Whether we like it or not, to compete with IE, Firefox should render as much like IE as possible, except where IE is non-standard. Saying that a rendering problem is not a problem because the html does not validate is not very convincing to an IE user looking at a corrupt page. JMHO. If you close it again I will leave it closed.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 5•20 years ago
|
||
Your testcase is rendered in Standards compliance mode, as you can see in PageInfo. Page Info is in the Extras menu on Firefox, in the View menu on Mozilla. If you want to have it rendered in quirks mode, you shouldn´t include a doctype. Some links about Mozilla rendering modes: http://www.mozilla.org/docs/web-developer/quirks/ http://www.mozilla.org/docs/web-developer/quirks/quirklist.html http://www.mozilla.org/docs/web-developer/quirks/doctypes.html http://www.mozilla.org/docs/web-developer/faq.html and in a temporary location, not a permanent URL: http://devedge-temp.mozilla.org/viewsource/2002/gecko-compatibility/index_en.html http://developer-test.mozilla.org/docs/Gecko_Compatibility_Handbook
Updated•20 years ago
|
Summary: link in dd loses indent if dt is preceeded by an anchor → [quirks]link in dd loses indent if dt is preceeded by an anchor
Comment 6•19 years ago
|
||
This is invalid. <a> is not allowed to contain <a>, so the link forces the outer <a> to be closed. This also forces the <dd> to be closed, since the <dd> is inside the <a> we're closing. So the net result is that the text "lazy dog" is not inside the <dd> in the content model.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 19 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•