Closed Bug 187195 Opened 22 years ago Closed 21 years ago

when unvisited link becomes visited, href attribute becomes absolute

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: bugzilla)

Details

Attachments

(1 file)

Phoenix has a feature that makes links change from the unvisited appearance to the visited appearance when you middle-click them. This feature has a side-affect: the href attribute becomes absolute when a link becomes visited, confusing my user style sheet and potentially confusing scripts that use getAttribute("href") [as opposed to foo.href]. This bug doesn't affect links that were already visited before you load a page. As a result, reloading fixes the problem. I discovered this bug shortly after adding the following rule to userContent.css. The rule is only supposed to match absolute links to slashdot urls, but because of this bug, it also matches relative links to slashdot urls that are visited while the page is open. The rule doesn't use :link or :visited. a[href^="http://www.slashdot.org"], a[href^="http://slashdot.org"] { background: white ! important; color: #066 ! important; font-weight: bold ! important }
Attached file testcase
OS: Windows XP → All
QA Contact: asa
Component: General → Layout
Product: Firefox → Browser
Version: unspecified → 1.0 Branch
Assignee: firefox → nobody
QA Contact: core.layout
(In reply to comment #0) > Phoenix has a feature that makes links change from the unvisited appearance to > the visited appearance when you middle-click them. This feature has a It does? I thought middle-click on a link was either "open in new tab" or "open in new window". I see no evidence of this feature you mention still existing, and in any case, it sounds like a front-end bug (because it sounds like a poor implementation of the feature in question, if that feature still exists).
Assignee: nobody → firefox
Component: Layout → General
Product: Browser → Firefox
Version: 1.0 Branch → unspecified
(In reply to comment #2) > It does? I thought middle-click on a link was either "open in new tab" or "open > in new window". > > I see no evidence of this feature you mention still existing, and in any case, > it sounds like a front-end bug (because it sounds like a poor implementation of > the feature in question, if that feature still exists). Just try it, it works. David Hyatt was the one who added this feature, and it's great. But this bug is about a side-effect that should be fixed, of course.
When I middle click a link in Firefox, it opens in a new tab.
(In reply to comment #4) > When I middle click a link in Firefox, it opens in a new tab. Sure, and the link gets the a:visited color instead of a:link.
I don't think that's what comment 0 is referring to. Comment 0 is referring to a feature that manipulates the DOM in some way.
(In reply to comment #6) > I don't think that's what comment 0 is referring to. Comment 0 is referring to > a feature that manipulates the DOM in some way. I am referring to this (in comment 0): "Phoenix has a feature that makes links change from the unvisited appearance to the visited appearance when you middle-click them." That's exactly what I thought we were all talking about here. :)
(I interpreted comment 0 as saying the feature was: middle click link == mark link as visited .)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: