Closed Bug 310617 Opened 19 years ago Closed 19 years ago

closed anchor tag produces style problems

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: bjakeway, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050702

The following code illustrates the problem.  Style information from a closed
anchor tag continues on after the end of the tag.

<html>
<head>
<title>Mozilla Bug</title>
</head>

<body>
<p>This is normal text. <a name="closed" style="font-size: 50%"/>&lt;a
name="closed" style="font-size: 50%"/&gt; shouldn't cause problems.</p>
<p>This is normal text. <a name="empty" style="font-size: 50%"></a>&lt;a
name="empty" style="font-size: 50%"&gt;&lt;/&gt; is fine.</p>
<p>This is normal text. <a name="text" style="font-size: 50%"></a>&lt;a
name="text" style="font-size: 50%"&gt;link&lt;/&gt; is fine.</p>
<p>This is normal text.  This should be fine too.</p></body></html>

Reproducible: Always

Steps to Reproduce:
1.  Create a document with a closed anchor tag <a style="font-size: 50%"/> and
some style information which will show up.
2.  Display the document in Mozilla.
Actual Results:  
The anchor's style information gets propagated beyond the end of the anchor tag.

Expected Results:  
The anchor's style information should not propagate beyond the end of the anchor
tag.
->invalid
Please attach a real testcase next time, because it's not clear what you're
trying.  But almost assuredly you're sending this as HTML (text/html).  See
http://www.w3.org/TR/xhtml1/#C_3 for why you can't do this.
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.