Closed
Bug 272870
Opened 20 years ago
Closed 20 years ago
rolling over text after an XML closed named anchor fires :hover
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 268477
People
(Reporter: travis.hardiman+bugzilla, Assigned: dbaron)
References
()
Details
Attachments
(1 file)
|
551 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041109 Firefox/1.0 (MOOX M3) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 <a name="x" /> doesn't close, text doesn't get 'a' styles, but :hover styles are applied onmouseover <a name="y"></a> closes properly Reproducible: Always Steps to Reproduce: 1. style a:hover 2. use <a/> with text after 3. hover the text after Actual Results: the text after the <a/> got the :hover style Expected Results: no style, the tag was closed I'll attach a simplified test case
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>a test</title> <style type="text/css"> a:hover { color: #F00; } </style> </head> <body> <a href="#" name="yes">text in a hyperlink (hover)</a><br/> <a name="maybe" />text following a XHTML closed named anchor (hover)<br/> <a name="no"></a>text following a regular closed named anchor (hover)<br/> </body> </html>
I realize that I'm using a MOOX build, but it occurs in the Mozilla builds as well (and not in IE if that matters)
Updated•20 years ago
|
Assignee: bugs → dbaron
Component: Web Site → Style System (CSS)
Product: Firefox → Core
QA Contact: ian
Version: unspecified → Trunk
Comment 3•20 years ago
|
||
*** This bug has been marked as a duplicate of 268477 ***
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.
Description
•