Skip to content

Conversation

hanakin
Copy link
Member

@hanakin hanakin commented May 22, 2014

[ticket/12580] Remove :link pseudo from a tag

removed the :link pseudo from a tag as due to specificity it prevents
classes from altering any properties set to it.

PHPBB3-12580 https://tracker.phpbb.com/browse/PHPBB3-12580?filter=-2

@bantu
Copy link
Collaborator

bantu commented May 22, 2014

In your commit message, please replace "TICKET-12580" with "PHPBB3-12580" and do not repeat the first line. See https://wiki.phpbb.com/Git#Commit_Messages.

Also, if you link to the tracker ticket, this will be a bit easier for us.

@nickvergessen
Copy link
Contributor

Also, if you link to the tracker ticket, this will be a bit easier for us.

In the PullRequest description, not the commit message ;)

@hanakin
Copy link
Member Author

hanakin commented May 23, 2014

I updated the pull comment, but im not sure how to change a commit msg other than reverting the commit and making the change and updating? Does this affect the pull request? Would I have to resubmit it?

@n-aleha
Copy link
Contributor

n-aleha commented May 23, 2014

One way to do it, is the following:

  • git commit --amend
  • force push (--force) the changes after you change the message with the above command

removed the :link pseudo from a tag as due to specificity it prevents
classes from altering any properties set to it.

PHPBB3-12580
@Crizz0
Copy link
Member

Crizz0 commented May 23, 2014

How will this affect old browser like "IE8"?

What about "a, a:link"?

@hanakin
Copy link
Member Author

hanakin commented May 23, 2014

IE 8 is CSS 2.1+ compatible and a:link is a CSS 1.0 ruleset left in from IE 6 compatibility days, so should have no effect but feel free to test it.

@Crizz0
Copy link
Member

Crizz0 commented May 23, 2014

@hanakin
Copy link
Member Author

hanakin commented May 23, 2014

thats a HTML 4.0 spec and we are on 5.0 now. IE 8 is a 4.1 browser and as I previously stated its 2.1 + compatible. IE 7 was the 2.1 release.

The whole thing however is moot because its not nor has it ever been a required attribute! a and a:link are for all intensive purposes identical as far as rendering go. The addition of the :link just adds further specificity to the a tag in order to preserve unvisted link status.

Also do not confuse written spec with actual spec. written is what w3c says actual is what the browsers use. Then their is real which is what we use as front-end developers haha.

@prototech prototech merged commit 9a130e3 into phpbb:develop-ascraeus May 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants