Closed Bug 310234 Opened 19 years ago Closed 19 years ago

XHTML-compliant anchors don't render correctly; break subsequent text

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: clieberman, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

doesn't seem to parse <a name="goHere" /> correctly... thinks subsequent text to
next </a> is a link, so <a name="goHere"></a> is required for anchor points

Reproducible: Always

Steps to Reproduce:
1.make an html file
2.include an xhtml-compliant anchor point: <a name="goHere" />
3.watch it break; then change to <a name="gohere"></a> and watch it work

Actual Results:  
it broke

Expected Results:  
had an anchor
In an HTML file, <a name="goHere" /> is parsed as <a name="goHere">.  The
attribute '/' isn't recognized and is thrown away.

See http://www.w3.org/TR/xhtml1/#C_3.  You cannot use the minimized form for
non-empty elements if you want your XHTML file to be compatible with HTML.

->invalid
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.