Permalink
Browse files

Removed error for missing title attributes, and downgraded empty alt …

…to warning
  • Loading branch information...
1 parent 32e6a1c commit 5bdf5beca74d7663497046f605dee7f388f43949 @redroot committed Aug 6, 2012
Showing with 15 additions and 12 deletions.
  1. +1 −0 README.markdown
  2. +13 −11 holmes.css
  3. +1 −1 holmes.min.css
View
@@ -55,6 +55,7 @@ Thanks for [http://www.twitter.com/MrNibbles](@MrNibbles) for the debug message
Changelog
---------
++ 06.08.12 - Removed error for missing title attributes, and downgraded empty alt to warning
+ 14.08.11 - Removed check for u tag since this is now valid in HTML5
+ 03.06.11 - Changes references of 'darkgrey' to a hex code to attempt to ensure the stylesheet is valid css3 (still 4 errors)
+ 27.04.11 - thanks to [http://www.twitter.com/MrNibbles](@MrNibbles), there is now a message on hover on any flagged elements. No support for ::after on images though :/
View
@@ -11,9 +11,9 @@
* @contributors Anthony Mann (hover based debug info)
* @author_url http://www.red-root.com
* @project_url http://github.com/redroot/holmes/
-* @version 1.0.4 (14/08/2011)
+* @version 1.0.45(06/08/2012)
*
-* Copyright (C) 2011 Luke Williams & RedRoot All Rights Reserved.
+* Copyright (C) 2012 Luke Williams & RedRoot All Rights Reserved.
* holmes.css HTML5 CSS Accessibility Validation
* Licenced under GPL license
* http://www.gnu.org/licenses/gpl.html
@@ -65,7 +65,6 @@
.holmes-debug a[href="#"],
.holmes-debug a[href^="javascript"],
-.holmes-debug a:not([title]),
.holmes-debug a[title=""]{
outline: 2px solid #fd0;
}
@@ -76,9 +75,12 @@
IMAGES
**************/
-.holmes-debug img:not([alt]),
+.holmes-debug img:not([alt]){
+ outline: 2px solid red;
+}
+
.holmes-debug img[alt=""] {
- outline: 2px solid red;
+ outline: 2px solid #fd0;
}
/*************************
MISC ATTRIBUTES
@@ -192,8 +194,8 @@ body.holmes-debug[leftmargin] {
/* - LINKS - */
.holmes-debug a[href="#"]:hover::after,
.holmes-debug a[href^="javascript"]:hover::after,
-.holmes-debug a:not([title]):hover::after,
.holmes-debug a[title=""]:hover::after,
+.holmes-debug img[alt=""]:hover::after,
/* - EMPTY ELEMENTS - */
.holmes-debug div:empty:hover::after,
@@ -228,7 +230,6 @@ body.holmes-debug[leftmargin] {
/* - IMAGES - */
.holmes-debug img:not([alt]):hover:after,
-.holmes-debug img[alt=""]:hover::after,
/* MISC ATTRIBUTES */
.holmes-debug label:not([for]):hover::after,
@@ -357,20 +358,21 @@ body.holmes-debug[leftmargin]:hover::after {
content:'Href has javascript';
}
-.holmes-debug a:not([title]):hover::after,
.holmes-debug a[title=""]:hover::after {
- content:'Missing title attribute';
+ content:'Empty title attribute';
}
/**************
IMAGES
**************/
-.holmes-debug img:not([alt]):hover::after,
-.holmes-debug img[alt=""]:hover::after {
+.holmes-debug img:not([alt]):hover::after {
content:'Missing alt attribute';
}
+.holmes-debug img[alt=""]:hover::after {
+ content:'No text in alt attribute';
+}
/*************************
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 5bdf5be

Please sign in to comment.