40 lines
2.0 KiB
XML
40 lines
2.0 KiB
XML
<?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>
|