Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…to warning
  • Loading branch information...
commit 5bdf5beca74d7663497046f605dee7f388f43949 1 parent 32e6a1c
@redroot authored
Showing with 15 additions and 12 deletions.
  1. +1 −0  README.markdown
  2. +13 −11 holmes.css
  3. +1 −1  holmes.min.css
View
1  README.markdown
@@ -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
24 holmes.css
@@ -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,9 +358,8 @@ 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';
}
@@ -367,10 +367,12 @@ body.holmes-debug[leftmargin]:hover::after {
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
2  holmes.min.css
@@ -1 +1 @@
-.holmes-debug a:not([href]),.holmes-debug a[href=""]{outline:2px solid red}.holmes-debug a[href="#"],.holmes-debug a[href^="javascript"],.holmes-debug a:not([title]),.holmes-debug a[title=""]{outline:2px solid #fd0}.holmes-debug img:not([alt]),.holmes-debug img[alt=""]{outline:2px solid red}.holmes-debug label:not([for]),.holmes-debug label[for=""],.holmes-debug input:not([name]),.holmes-debug input[name=""],.holmes-debug select:not([name]),.holmes-debug select[name=""],.holmes-debug textarea:not([name]),.holmes-debug textarea[name=""],.holmes-debug abbr:not([title]),.holmes-debug abbr[title=""],.holmes-debug [class=""],.holmes-debug [id=""],.holmes-debug table:not([summary]),.holmes-debug table[summary=""]{outline:2px solid red}.holmes-debug [style]{outline:2px solid #fd0}.holmes-debug applet,.holmes-debug acronym,.holmes-debug center,.holmes-debug dir,.holmes-debug font,.holmes-debug strike,.holmes-debug big,.holmes-debug tt,.holmes-debug marquee,.holmes-debug plaintext,.holmes-debug xmp{border:2px solid #a9a9a9}body.holmes-debug[background],body.holmes-debug[bgproperties],body.holmes-debug[topmargin],body.holmes-debug[rightmargin],body.holmes-debug[bottommargin],body.holmes-debug[leftmargin]{outline:2px solid #a9a9a9}.holmes-debug *[bordercolor],.holmes-debug *[bordercolordark],.holmes-debug *[bordercolorlight],.holmes-debug table[frame]{border:2px solid #a9a9a9}.holmes-debug *[align],.holmes-debug *[valign],.holmes-debug *[bgcolor],.holmes-debug *[clear],.holmes-debug ul[type],.holmes-debug li[type]{border:2px solid #a9a9a9}.holmes-debug div:empty,.holmes-debug span:empty,.holmes-debug li:empty,.holmes-debug p:empty,.holmes-debug td:empty,.holmes-debug th:empty{border:2px solid #fd0}.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 div:empty:hover::after,.holmes-debug span:empty:hover::after,.holmes-debug li:empty:hover::after,.holmes-debug p:empty:hover::after,.holmes-debug td:empty:hover::after,.holmes-debug th:empty:hover::after,.holmes-debug [style]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:#fd0;position:fixed;color:#000;left:0;top:0;z-index:9999}.holmes-debug a:not([href]):hover::after,.holmes-debug a[href=""]:hover::after,.holmes-debug img:not([alt]):hover:after,.holmes-debug img[alt=""]:hover::after,.holmes-debug label:not([for]):hover::after,.holmes-debug label[for=""]:hover::after,.holmes-debug input:not([name]):hover::after,.holmes-debug input[name=""]:hover::after,.holmes-debug select:not([name]):hover::after,.holmes-debug select[name=""]:hover::after,.holmes-debug textarea:not([name]):hover::after,.holmes-debug textarea[name=""]:hover::after,.holmes-debug abbr:not([title]):hover::after,.holmes-debug abbr[title=""]:hover::after,.holmes-debug [class=""]:hover::after,.holmes-debug [id=""]:hover::after,.holmes-debug table:not([summary]):hover::after,.holmes-debug table[summary=""]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:red;position:fixed;color:#000;left:0;top:0;z-index:9999;text-decoration:none}.holmes-debug applet:hover::after,.holmes-debug acronym:hover::after,.holmes-debug center:hover::after,.holmes-debug dir:hover::after,.holmes-debug font:hover::after,.holmes-debug strike:hover::after,.holmes-debug big:hover::after,.holmes-debug tt:hover::after,.holmes-debug marquee:hover::after,.holmes-debug plaintext:hover::after,.holmes-debug xmp:hover::after,.holmes-debug *[bordercolor]:hover::after,.holmes-debug *[bordercolordark]:hover::after,.holmes-debug *[bordercolorlight]:hover::after,.holmes-debug table[frame]:hover::after,.holmes-debug *[align]:hover::after,.holmes-debug *[valign]:hover::after,.holmes-debug *[bgcolor]:hover::after,.holmes-debug *[clear]:hover::after,.holmes-debug ul[type]:hover::after,.holmes-debug li[type]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:red;position:fixed;background:#a9a9a9;color:#000;left:0;top:0;z-index:9999}body.holmes-debug[background]:hover::after,body.holmes-debug[bgproperties]:hover::after,body.holmes-debug[topmargin]:hover::after,body.holmes-debug[rightmargin]:hover::after,body.holmes-debug[bottommargin]:hover::after,body.holmes-debug[leftmargin]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:red;position:fixed;background:#a9a9a9;color:#000;bottom:0;right:0;z-index:9999}.holmes-debug td:empty:hover::after,.holmes-debug th:empty:hover::after{top:4em}.holmes-debug a:not([href]):hover::after,.holmes-debug a[href=""]:hover::after{content:'Missing href attribute'}.holmes-debug a[href="#"]:hover:after{content:"href='#'"}.holmes-debug a[href^="javascript"]:hover:after{content:'Href has javascript'}.holmes-debug a:not([title]):hover::after,.holmes-debug a[title=""]:hover::after{content:'Missing title attribute'}.holmes-debug img:not([alt]):hover::after,.holmes-debug img[alt=""]:hover::after{content:'Missing alt attribute'}.holmes-debug label:not([for]):hover::after,.holmes-debug label[for=""]:hover::after{content:'Missing for attribute'}.holmes-debug input:not([name]):hover::after,.holmes-debug input[name=""]:hover::after,.holmes-debug select:not([name]):hover::after,.holmes-debug select[name=""]:hover::after,.holmes-debug textarea:not([name]):hover::after,.holmes-debug textarea[name=""]:hover::after{content:'Missing name attribute'}.holmes-debug abbr:not([title]):hover::after,.holmes-debug abbr[title=""]:hover::after{content:'Missing title attribute'}.holmes-debug [class=""]:hover::after{content:'Blank class attribute'}.holmes-debug [id=""]:hover::after{content:'Blank id attribute'}.holmes-debug table:not([summary]):hover::after,.holmes-debug table[summary=""]:hover::after{content:'Missing summary attribute'}.holmes-debug [style]:hover::after{content:'Element has inline styles'}.holmes-debug applet:hover::after,.holmes-debug acronym:hover::after,.holmes-debug center:hover::after,.holmes-debug dir:hover::after,.holmes-debug font:hover::after,.holmes-debug strike:hover::after,.holmes-debug big:hover::after,.holmes-debug tt:hover::after,.holmes-debug marquee:hover::after,.holmes-debug plaintext:hover::after,.holmes-debug xmp:hover::after{content:'Deprecated or Non-W3C element'}body.holmes-debug[background]:hover::after{content:'Deprecated or Non-W3C body attribute background'}body.holmes-debug[bgproperties]:hover::after{content:'Deprecated or Non-W3C body attribute bgproperties'}body.holmes-debug[topmargin]:hover::after,body.holmes-debug[rightmargin]:hover::after,body.holmes-debug[bottommargin]:hover::after,body.holmes-debug[leftmargin]:hover::after{content:'Deprecated or Non-W3C body attribute *margin'}.holmes-debug *[bordercolor]:hover::after,.holmes-debug *[bordercolordark]:hover::after,.holmes-debug *[bordercolorlight]:hover::after{content:'Deprecated or Non-W3C attribute bordercolor'}.holmes-debug table[frame]:hover::after{content:'Deprecated or Non-W3C table attribute frame'}.holmes-debug *[align]:hover::after,.holmes-debug *[valign]:hover::after{content:'Deprecated or Non-W3C attribute *align'}.holmes-debug *[bgcolor]:hover::after{content:'Deprecated or Non-W3C attribute bgcolor'}.holmes-debug *[clear]:hover::after{content:'Deprecated or Non-W3C attribute clear'}.holmes-debug ul[type]:hover::after,.holmes-debug li[type]:hover::after{content:'Deprecated or Non-W3C list attribute type'}.holmes-debug div:empty:hover::after,.holmes-debug span:empty:hover::after,.holmes-debug li:empty:hover::after,.holmes-debug p:empty:hover::after,.holmes-debug td:empty:hover::after,.holmes-debug th:empty:hover::after{content:'Empty element!'}
+.holmes-debug a:not([href]),.holmes-debug a[href=""]{outline:2px solid red}.holmes-debug a[href="#"],.holmes-debug a[href^="javascript"],.holmes-debug a[title=""]{outline:2px solid #fd0}.holmes-debug img:not([alt]){outline:2px solid red}.holmes-debug img[alt=""]{outline:2px solid #fd0}.holmes-debug label:not([for]),.holmes-debug label[for=""],.holmes-debug input:not([name]),.holmes-debug input[name=""],.holmes-debug select:not([name]),.holmes-debug select[name=""],.holmes-debug textarea:not([name]),.holmes-debug textarea[name=""],.holmes-debug abbr:not([title]),.holmes-debug abbr[title=""],.holmes-debug [class=""],.holmes-debug [id=""],.holmes-debug table:not([summary]),.holmes-debug table[summary=""]{outline:2px solid red}.holmes-debug [style]{outline:2px solid #fd0}.holmes-debug applet,.holmes-debug acronym,.holmes-debug center,.holmes-debug dir,.holmes-debug font,.holmes-debug strike,.holmes-debug big,.holmes-debug tt,.holmes-debug marquee,.holmes-debug plaintext,.holmes-debug xmp{border:2px solid #a9a9a9}body.holmes-debug[background],body.holmes-debug[bgproperties],body.holmes-debug[topmargin],body.holmes-debug[rightmargin],body.holmes-debug[bottommargin],body.holmes-debug[leftmargin]{outline:2px solid #a9a9a9}.holmes-debug *[bordercolor],.holmes-debug *[bordercolordark],.holmes-debug *[bordercolorlight],.holmes-debug table[frame]{border:2px solid #a9a9a9}.holmes-debug *[align],.holmes-debug *[valign],.holmes-debug *[bgcolor],.holmes-debug *[clear],.holmes-debug ul[type],.holmes-debug li[type]{border:2px solid #a9a9a9}.holmes-debug div:empty,.holmes-debug span:empty,.holmes-debug li:empty,.holmes-debug p:empty,.holmes-debug td:empty,.holmes-debug th:empty{border:2px solid #fd0}.holmes-debug a[href="#"]:hover::after,.holmes-debug a[href^="javascript"]:hover::after,.holmes-debug a[title=""]:hover::after,.holmes-debug img[alt=""]:hover::after,.holmes-debug div:empty:hover::after,.holmes-debug span:empty:hover::after,.holmes-debug li:empty:hover::after,.holmes-debug p:empty:hover::after,.holmes-debug td:empty:hover::after,.holmes-debug th:empty:hover::after,.holmes-debug [style]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:#fd0;position:fixed;color:#000;left:0;top:0;z-index:9999}.holmes-debug a:not([href]):hover::after,.holmes-debug a[href=""]:hover::after,.holmes-debug img:not([alt]):hover:after,.holmes-debug label:not([for]):hover::after,.holmes-debug label[for=""]:hover::after,.holmes-debug input:not([name]):hover::after,.holmes-debug input[name=""]:hover::after,.holmes-debug select:not([name]):hover::after,.holmes-debug select[name=""]:hover::after,.holmes-debug textarea:not([name]):hover::after,.holmes-debug textarea[name=""]:hover::after,.holmes-debug abbr:not([title]):hover::after,.holmes-debug abbr[title=""]:hover::after,.holmes-debug [class=""]:hover::after,.holmes-debug [id=""]:hover::after,.holmes-debug table:not([summary]):hover::after,.holmes-debug table[summary=""]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:red;position:fixed;color:#000;left:0;top:0;z-index:9999;text-decoration:none}.holmes-debug applet:hover::after,.holmes-debug acronym:hover::after,.holmes-debug center:hover::after,.holmes-debug dir:hover::after,.holmes-debug font:hover::after,.holmes-debug strike:hover::after,.holmes-debug big:hover::after,.holmes-debug tt:hover::after,.holmes-debug marquee:hover::after,.holmes-debug plaintext:hover::after,.holmes-debug xmp:hover::after,.holmes-debug *[bordercolor]:hover::after,.holmes-debug *[bordercolordark]:hover::after,.holmes-debug *[bordercolorlight]:hover::after,.holmes-debug table[frame]:hover::after,.holmes-debug *[align]:hover::after,.holmes-debug *[valign]:hover::after,.holmes-debug *[bgcolor]:hover::after,.holmes-debug *[clear]:hover::after,.holmes-debug ul[type]:hover::after,.holmes-debug li[type]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:red;position:fixed;background:#a9a9a9;color:#000;left:0;top:0;z-index:9999}body.holmes-debug[background]:hover::after,body.holmes-debug[bgproperties]:hover::after,body.holmes-debug[topmargin]:hover::after,body.holmes-debug[rightmargin]:hover::after,body.holmes-debug[bottommargin]:hover::after,body.holmes-debug[leftmargin]:hover::after{border-radius:.5em;display:block;padding:1em;margin:1em;background:red;position:fixed;background:#a9a9a9;color:#000;bottom:0;right:0;z-index:9999}.holmes-debug td:empty:hover::after,.holmes-debug th:empty:hover::after{top:4em}.holmes-debug a:not([href]):hover::after,.holmes-debug a[href=""]:hover::after{content:'Missing href attribute'}.holmes-debug a[href="#"]:hover:after{content:"href='#'"}.holmes-debug a[href^="javascript"]:hover:after{content:'Href has javascript'}.holmes-debug a[title=""]:hover::after{content:'Empty title attribute'}.holmes-debug img:not([alt]):hover::after{content:'Missing alt attribute'}.holmes-debug img[alt=""]:hover::after{content:'No text in alt attribute'}.holmes-debug label:not([for]):hover::after,.holmes-debug label[for=""]:hover::after{content:'Missing for attribute'}.holmes-debug input:not([name]):hover::after,.holmes-debug input[name=""]:hover::after,.holmes-debug select:not([name]):hover::after,.holmes-debug select[name=""]:hover::after,.holmes-debug textarea:not([name]):hover::after,.holmes-debug textarea[name=""]:hover::after{content:'Missing name attribute'}.holmes-debug abbr:not([title]):hover::after,.holmes-debug abbr[title=""]:hover::after{content:'Missing title attribute'}.holmes-debug [class=""]:hover::after{content:'Blank class attribute'}.holmes-debug [id=""]:hover::after{content:'Blank id attribute'}.holmes-debug table:not([summary]):hover::after,.holmes-debug table[summary=""]:hover::after{content:'Missing summary attribute'}.holmes-debug [style]:hover::after{content:'Element has inline styles'}.holmes-debug applet:hover::after,.holmes-debug acronym:hover::after,.holmes-debug center:hover::after,.holmes-debug dir:hover::after,.holmes-debug font:hover::after,.holmes-debug strike:hover::after,.holmes-debug big:hover::after,.holmes-debug tt:hover::after,.holmes-debug marquee:hover::after,.holmes-debug plaintext:hover::after,.holmes-debug xmp:hover::after{content:'Deprecated or Non-W3C element'}body.holmes-debug[background]:hover::after{content:'Deprecated or Non-W3C body attribute background'}body.holmes-debug[bgproperties]:hover::after{content:'Deprecated or Non-W3C body attribute bgproperties'}body.holmes-debug[topmargin]:hover::after,body.holmes-debug[rightmargin]:hover::after,body.holmes-debug[bottommargin]:hover::after,body.holmes-debug[leftmargin]:hover::after{content:'Deprecated or Non-W3C body attribute *margin'}.holmes-debug *[bordercolor]:hover::after,.holmes-debug *[bordercolordark]:hover::after,.holmes-debug *[bordercolorlight]:hover::after{content:'Deprecated or Non-W3C attribute bordercolor'}.holmes-debug table[frame]:hover::after{content:'Deprecated or Non-W3C table attribute frame'}.holmes-debug *[align]:hover::after,.holmes-debug *[valign]:hover::after{content:'Deprecated or Non-W3C attribute *align'}.holmes-debug *[bgcolor]:hover::after{content:'Deprecated or Non-W3C attribute bgcolor'}.holmes-debug *[clear]:hover::after{content:'Deprecated or Non-W3C attribute clear'}.holmes-debug ul[type]:hover::after,.holmes-debug li[type]:hover::after{content:'Deprecated or Non-W3C list attribute type'}.holmes-debug div:empty:hover::after,.holmes-debug span:empty:hover::after,.holmes-debug li:empty:hover::after,.holmes-debug p:empty:hover::after,.holmes-debug td:empty:hover::after,.holmes-debug th:empty:hover::after{content:'Empty element!'}
Please sign in to comment.
Something went wrong with that request. Please try again.