Closed Bug 144320 Opened 22 years ago Closed 22 years ago

Named anchors display "active" style when clicked

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 65917

People

(Reporter: jeffwofford, Assigned: attinasi)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0+)
Gecko/20020512
BuildID:    2002051208

Perhaps this is the desired behavior, but it isn't what I expect. Text marked as
a named anchor will display in the "active" style when clicked.

Reproducible: Always
Steps to Reproduce:
1. Open http://www.mozilla.org/roadmap.html.
2. Scroll down to the line which reads "Tabulating the milestones to show the
proposed dates...".
3. Click and hold the mouse button anywhere on that text.

Actual Results:  The text appears red as long as the mouse button is held.

Expected Results:  Treated the text as ordinary, non-anchor text.
I'm almost positive the behavior you describe is not incorrect.  About the
:active selector, from W3C spec
http://www.w3.org/TR/REC-CSS2/selector.html#dynamic-pseudo-classes

"The :active pseudo-class applies while an element is being activated by the
user. For example, between the times the user presses the mouse button and
releases it."
Besides, I think your expected results are mixed up.  The text _is_ enclosed
within an anchor:
(quoted from your URL's source code):
<a name="new-milestones">Tabulating the milestones to show the proposed dates,
with trunk freeze, branch creation, and milestone release dates distinguished
from one another (the next milestone's start date is the previous one's branch
date), yields:</a>
and there is the corresponding CSS fragment:
a:active {
    color: #F00
}
Duplicate of ":active neither hierarchical nor picky about what can be activated" 

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