Closed
Bug 241367
Opened 21 years ago
Closed 20 years ago
Spurious line break in first ordered list line to contain a link/anchor.
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 167467
People
(Reporter: k, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7b) Gecko/20040421
In the first ordered list on the page,
http://www.rotted.com/fs8/race/doc/install.html#1, notice that Mozilla inserts a
line break between the unlinked and linked text. I've experimented and found
that it adds the spurious line break always right before the first link in the
ordered list, be it in the first item or further down. Subsequent items in the
list behave as expected as you can see.
Reproducible: Always
Steps to Reproduce:
1. Create an ordered list.
2. In two of the list items, include a hyperlinked word.
Actual Results:
The first occurance of a linked word will have an unintended line break just
before the link.
Expected Results:
Only break lines between list items or other block delimitters.
Comment 1•21 years ago
|
||
The markup is:
<a name="whatever">
<ul>
<li> Text <a href="something"> More text </a> </li>
</ul>
Now this is not valid HTML, since an <a> element may not contain another <a>
element (and may not contain <ul> either). So the parser fixes it up to:
<ul>
<a name="whatever">
<li> Text </li>
</a>
<a href="something"> More text </a>
</ul>
See where the linebreak is coming from?
This is already filed...
Whiteboard: DUPEME
Comment 2•21 years ago
|
||
this also occurs with the xhtml format: <a name="whatever" />
Comment 3•20 years ago
|
||
This also resets the font size (and probably other things) at the point of the
line break. See, for instance:
http://www.sniggle.net/Experiment/index.php?entry=19Aug04
Comment 4•20 years ago
|
||
And note that the page:
http://www.sniggle.net/Experiment/index.php?entry=19Aug04
Is valid xhtml, without <a&rt; elements embedded in other <a&rt; elements.
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 5•20 years ago
|
||
*** This bug has been marked as a duplicate of 167467 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Comment 6•20 years ago
|
||
You've marked this bug as a duplicate of a bug marked "RESOLVED INVALID" - but
this bug is NOT resolved nor is it invalid (it still exists in current versions
of Mozilla/Firefox, and it happens even when displaying a page that uses valid
XHTML/CSS). I recommend either reopening this bug, or reopening Bug 167467.
You need to log in
before you can comment on or make changes to this bug.
Description
•