Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited.

I have run my sharepoint web site nder IE F12 developer tools, and the console mentioned the following error at the beginning of my HTML :-

SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited. 

So what is this error ? and how i can fix it ? Thanks

like image 938
john Gu Avatar asked Sep 13 '13 13:09

john Gu


2 Answers

Change only the color attribute for css rules that contains :visited or :link selector

http://msdn.microsoft.com/en-us/library/ie/hh180764%28v=vs.85%29.aspx

like image 187
elnino3800 Avatar answered Nov 03 '22 00:11

elnino3800


This is a security feature. This question also deals with the same issue and contains a link to this page which is a very informative and interesting read.

Basically, :visited has the potential to pose a serious security risk to users (for example, when used in conjuction with getComputedStyle()), and consequently browsers severely restrict what you can do with it.

To fix it, remove a:visited from your list of CSS element selectors (traditionally, some stylesheets combine all the a psuedo classes: a:link, a:visited, a:hover, a:active { styles here }) and style it separately, only applying color.

like image 34
Luke Avatar answered Nov 02 '22 23:11

Luke