- From: Karl Dubost via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 15 Dec 2006 05:26:36 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css In directory hutz:/tmp/cvs-serv30320 Modified Files: StyleSheetGeneratorHTML2.java Log Message: Modified warnings: adding title for accessibility reasons Index: StyleSheetGeneratorHTML2.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML2.java,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- StyleSheetGeneratorHTML2.java 14 Dec 2006 06:39:49 -0000 1.46 +++ StyleSheetGeneratorHTML2.java 15 Dec 2006 05:26:34 -0000 1.47 @@ -339,32 +339,31 @@ ret.append(oldSourceFile).append("</a></h3><table>"); open = true; } -// if (warn.getLine() != oldLine -// || !warn.getWarningMessage().equals(oldMessage)) { oldLine = warn.getLine(); oldMessage = warn.getWarningMessage(); + + // Starting a line for each new warning ret.append("\n<tr class='warning'>\n <td class='linenumber'>"); -// to remove the trigger of line label in languages. -// ret.append(ac.getMsg().getGeneratorString("line")); -// ret.append(" : "); ret.append(oldLine); ret.append("</td> "); -// <span class='level1'> - level of warning + + // Getting the code context of the CSS ret.append("\n <td class='codeContext'>"); if (warn.getContext() != null) { ret.append(warn.getContext()); } ret.append("</td>"); -// if (warn.getLevel() != 0) { -// there are warnings with level 0 which need the table + + // generating the cell for levels of warnings + // creating a class and a title with the appropriate level number ret.append("\n <td class='level"); ret.append(warn.getLevel()); + ret.append("' title='warning level '"); + ret.append(warn.getLevel()); ret.append("'>"); -// } ret.append(Util.escapeHTML(oldMessage)); ret.append("</td> "); ret.append("\n</tr>"); -// } } } if (open) {
Received on Friday, 15 December 2006 05:26:42 UTC