Links (a) in unordered lists (ul, li) get randomly bumped to a new line.

RESOLVED INVALID

Status

()

Firefox
General
RESOLVED INVALID
14 years ago
14 years ago

People

(Reporter: Balarama Bosch, Assigned: Blake Ross)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001 Firefox/0.10.1

On the page http://www.krishna.com/_new/main.php?id=323 certain links <a>
get randomly bumped to a new line, as if a line break was inserted in front of
link. See attached image.

I also made sure the html markup is well-formed. It should conform to XHTML 1.1,
though it's using a custom DTD (XHTML + Value attribute for lists). I also made
sure it's not the CSS stylesheet doing this.

Reproducible: Always
Steps to Reproduce:
1. code an unordered list (ul) which includes a link in the list item (li) part.
Actual Results:  
The link gets bumped to a new line as if a line break (br) were inserted in
front of it.

Expected Results:  
The link should have remained an inline item (i.e. no new line).
(Reporter)

Comment 1

14 years ago
Created attachment 161033 [details]
An example of links being bumped to a new line.

Comment 2

14 years ago
<ul>
<a name="true">	<li>is free from all selfish motives.</li>
	<li>represents Krishna purely.</li>
	<li>embodies the knowledge given by Krishna.</li>
	<li>is firmly fixed in thought of Krishna.</li>
	<li>is recognized by </li></a><a
href="http://www.krishna.com/newsite/main.php?id=326">twenty-six qualities</a>.
	<li>is qualified to help you perfectly understand knowledge of the self,
Krishnaand your relationship with Krishna. </li>

</ul>

Your <a name="true"> closes here:
<li>is recognized by </li></a>

That's invalid and causing the line break.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID

Comment 3

14 years ago
oops, the view selection source code changed the source.

Here's why the real source is invalid:

<h3><a name="true" />True Teachers</h3>
              <p>Knowledge from the Vedas must be received from a true teacher.
A true teacher:</p><ul>
	<li>is free from all selfish motives.</li>
	<li>represents Krishna purely.</li>
	<li>embodies the knowledge given by Krishna.</li>

	<li>is firmly fixed in thought of Krishna.</li>
	<li>is recognized by <a
href="http://www.krishna.com/newsite/main.php?id=326">twenty-six qualities</a>.</li>
	<li>is qualified to help you perfectly understand knowledge of the self,
Krishnaand your relationship with Krishna. </li>
</ul>

You're serving the page as text/html, so you cannot use this syntax to close an
<A> tag: <a name="true" />

You have to either serve the page as XML, or write the code to the HTML
compatibility guidelines.
You need to log in before you can comment on or make changes to this bug.