Closed Bug 283189 Opened 20 years ago Closed 20 years ago

empty anchor with style color information is applied to entire subsequent document

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 225323

People

(Reporter: gerrit, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041111 Firefox/1.0

In the page at http://topjaklont.student.utwente.nl/firefoxbug.html, all content
text should be black. However, if an anchor is closed in the opening tag (in
XHTML style: <a />), the style information is applied to the rest of the
document. This holds only for stylesheets defined by the site (not the default
Firefox stylesheets). It applied to external stylesheets, internal stylesheets
and style properties with the style=... entity. 

Reproducible: Always

Steps to Reproduce:
1. Apply the color: property to a XHTML anchor
2. Close the property within the opening tag (XHTML style: <a />)
3. view in Firefox 1.0

Actual Results:  
Everything after the <a /> turns the color described by the stylesheet.

Expected Results:  
It should have been rendered as the rest of the document.
I have heard this bug exists in IE as well. However, Konquerer handles the page
well. It is valid XHTML 1.0 Strict.
Summary: emtpy anchor with style color information is applied to entire subsequent document → empty anchor with style color information is applied to entire subsequent document
Version: unspecified → 1.0 Branch
It's because the page is served with an HTML MIME type, rather than an XHTML one.

See http://www.w3.org/TR/xhtml-media-types/
, http://www.w3.org/TR/xhtml1/#C_3

and the comments on bug 225323

*** This bug has been marked as a duplicate of 225323 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.