- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 05 Feb 2010 09:24:52 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/markup/schema In directory hutz:/tmp/cvs-serv12636/schema Added Files: warnings.sch Log Message: convenience --- NEW FILE: warnings.sch --- <?xml version="1.0"?> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- RELAX NG Schema for HTML 5: Warnings --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <schema xmlns='http://www.ascc.net/xml/schematron'> <ns prefix='h' uri='http://www.w3.org/1999/xhtml'/> <pattern name="Warnings for HTML5 attributes that are obsolete but conforming"> <rule context='h:meta'> <report test='translate(@http-equiv,"CONTELAGUA", "contelagua")="content-language"' role='warning'> Using the “meta” element to specify the document-wide default language is obsolete. Consider specifying the language on the root element instead. </report> </rule> <rule context='h:img'> <report test='@border' role='warning'> The “border” attribute on the “img” element is obsolete. Consider specifying “img { border: 0; }“ in CSS instead. </report> </rule> <rule context='h:script[translate(@language, "JAVSCRIPT", "javscript")="javascript"]'> <report test='not(@type) or translate(@type, "EXJAVSCRIPT", "exjavscript")="text/javascript"' role='warning'> The “language” attribute on the “script” element is obsolete. You can safely omit it. </report> </rule> <rule context='h:a'> <report test='@name' role='warning'> The “name” attribute on the “a” element is obsolete. Consider putting an “id” attribute on the nearest container instead. </report> </rule> <rule context='h:table'> <report test='@summary' role='warning'> The “summary” attribute on the “a” element is obsolete. Consider describing the structure of complex tables in a “caption” element or in a paragraph, and pointing to the paragraph using the “aria-describedby” attribute. </report> </rule> </pattern> </schema>
Received on Friday, 5 February 2010 09:24:54 UTC