Skip to content

Commit

Permalink
Infrastructure: chore: Enable and fix additional HTMLHint rules (#1782)
Browse files Browse the repository at this point in the history
* Enables all passing HTMLHint rules.
* Fixes failures of the following HTMLHint rules:
   * spec-char-escape, Remove stray fragmement of code instead of escape
   * HTMLHint tag-pair
   * HTMLHint space-tab-mixed-disabled
   * HTMLHint attr-value-double-quotes
   * HTMLHint doctype-html5
   * Duplicate IDs
   * Unclosed tags
   * Escape ampersand
* Also includes templates in when running HTMLHint
  • Loading branch information
nschonni committed Oct 30, 2021
1 parent 3b62c9c commit 4e182da
Show file tree
Hide file tree
Showing 24 changed files with 269 additions and 237 deletions.
24 changes: 23 additions & 1 deletion .htmlhintrc
@@ -1,3 +1,25 @@
{
"attr-lowercase": ["viewBox"]
"alt-require": false,
"attr-lowercase": ["viewBox"],
"attr-no-duplication": true,
"attr-unsafe-chars": true,
"attr-value-double-quotes": true,
"attr-value-not-empty": false,
"doctype-first": true,
"doctype-html5": true,
"head-script-disabled": false,
"href-abs-or-rel": false,
"id-class-ad-disabled": false,
"id-class-value": false,
"id-unique": true,
"inline-script-disabled": false,
"inline-style-disabled": false,
"space-tab-mixed-disabled": "space",
"spec-char-escape": true,
"src-not-empty": true,
"style-disabled": false,
"tag-pair": true,
"tag-self-close": false,
"tagname-lowercase": true,
"title-require": true
}
312 changes: 156 additions & 156 deletions aria-practices-DeletedSectionsArchive.html
@@ -1,162 +1,162 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>Content Deleted From WAI-ARIA Authoring Practices 1.1</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="https://www.w3.org/Tools/respec/respec-w3c-common" class="remove"></script>
<script src="common/script/resolveReferences.js" class="remove"></script>
<script src="common/biblio.js" class="remove"></script>
<script class="remove">
var respecConfig = {
// Embed RDFa data in the output.
doRDFa : '1.1',
includePermalinks : true,
permalinkEdge : true,
permalinkHide : false,
// Specification status (e.g., WD, LC, NOTE, etc.). If in doubt use ED.
specStatus : "ED",
// crEnd: "2012-04-30",
// perEnd: "2013-07-23",
// publishDate: "2013-08-22",
noRecTrack : true,
diffTool : "http://www.aptest.com/standards/htmldiff/htmldiff.pl",

// The specifications short name, as in http://www.w3.org/TR/short-name/
shortName : "wai-aria-practices-1.1",

// If you wish the publication date to be other than today,
// set publishDate.
// publishDate: "2009-08-06",
copyrightStart : "2015",

// If there is a previously published draft, uncomment this
// and set its YYYY-MM-DD date and its maturity status.
//
// previousPublishDate: "",
// previousMaturity: "",
// prevRecURI: "",
// previousDiffURI: "",

// If there a publicly available Editors Draft, this is the link
edDraftURI : "http://w3c.github.io/aria-practices/",

// If this is a LCWD, uncomment and set the end of its review period
// lcEnd: "2012-02-21",

// Editors, add as many as you like.
// “name” is the only required field.
editors : [ {
name : "Matt King",
mailto : "mck@fb.com",
company : "Facebook",
companyURI : "http://www.facebook.com/"
}, {
name : "James Nurthen",
mailto : "james.nurthen@oracle.com",
company : "Oracle Corporation",
companyURI : "http://www.oracle.com/"
}, {
name : "Michael Cooper",
url : 'http://www.w3.org/People/cooper/',
mailto : "cooper@w3.org",
company : "W3C",
companyURI : "http://www.w3.org/"
}, {
name : "Michiel Bijl",
mailto : "mbijl@paciellogroup.com",
company : "The Paciello Group",
companyURI : "https://www.paciellogroup.com/"
}, {
name : "Joseph Scheuhammer",
company : "Inclusive Design Research Centre, OCAD University",
companyURI : "http://idrc.ocad.ca/",
note : "Previous Editor"
}, {
name : "Lisa Pappas",
company : "SAS",
companyURI : "http://www.sas.com/",
note : "Previous Editor"
}, {
name : "Rich Schwerdtfeger",
company : "IBM Corporation",
companyURI : "http://ibm.com/",
note : "Previous Editor"
}, ],

// Authors, add as many as you like.
// This is optional, uncomment if you have authors as well as editors.
// Same format and requirements as editors.

// authors: [
// {
// name: "Your Name",
// url: "http://example.org/",
// company: "Your Company",
// companyURI: "http://example.com/"
// },
// ],

// Spec URLs
ariaSpecURLs : {
"ED" : "http://w3c.github.io/aria/aria/aria.html",
"FPWD" : "http://www.w3.org/TR/wai-aria-1.1/",
"WD" : "http://www.w3.org/TR/wai-aria-1.1/",
"REC" : "http://www.w3.org/TR/wai-aria/"
},
accNameURLs : {
"ED" : "http://w3c.github.io/aria/accname-aam/accname-aam.html",
"WD" : "http://www.w3.org/TR/accname-aam-1.1/",
"FPWD" : "http://www.w3.org/TR/accname-aam-1.1/",
"REC" : "http://www.w3.org/TR/accname-aam-1.1/"
},
coreMappingURLs : {
"ED" : "http://w3c.github.io/aria/core-aam/core-aam.html",
"WD" : "http://www.w3.org/TR/core-aam-1.1/",
"FPWD" : "http://www.w3.org/TR/core-aam-1.1/",
"REC" : "http://www.w3.org/TR/core-aam-1.1/"
},

// alternateFormats: [
// {
// uri: 'aria-practices-diff.html',
// label: "Diff from Previous Recommendation"
// },
// {
// uri: 'aria-practices.ps',
// label: "PostScript version"
// },
// {
// uri: 'aria-practices.pdf',
// label: "PDF version"
// }
// ],

// errata: 'http://www.w3.org/2010/02/rdfa/errata.html',

// name of the WG
wg : "Accessible Rich Internet Applications Working Group",

// URI of the public WG page
wgURI : "http://www.w3.org/WAI/ARIA/",

// Name (without the @w3c.org) of the public mailing
// to which comments are due.
wgPublicList : "public-aria",

// URI of the patent status for this WG, for Rec-track documents
// !!!! IMPORTANT !!!!
// This is important for Rec-track documents, do not copy a patent URI
// from a random document unless you know what you're doing.
// If in doubt ask your friendly neighbourhood Team Contact.
wgPatentURI : "http://www.w3.org/2004/01/pp-impl/83726/status",
maxTocLevel : 4,

localBiblio : biblio,

preProcess : [ linkCrossReferences ]
};
</script>
<link href="common/css/common.css" rel="stylesheet" type="text/css" />
<title>Content Deleted From WAI-ARIA Authoring Practices 1.1</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="https://www.w3.org/Tools/respec/respec-w3c-common" class="remove"></script>
<script src="common/script/resolveReferences.js" class="remove"></script>
<script src="common/biblio.js" class="remove"></script>
<script class="remove">
var respecConfig = {
// Embed RDFa data in the output.
doRDFa : '1.1',
includePermalinks : true,
permalinkEdge : true,
permalinkHide : false,
// Specification status (e.g., WD, LC, NOTE, etc.). If in doubt use ED.
specStatus : "ED",
// crEnd: "2012-04-30",
// perEnd: "2013-07-23",
// publishDate: "2013-08-22",
noRecTrack : true,
diffTool : "http://www.aptest.com/standards/htmldiff/htmldiff.pl",

// The specifications short name, as in http://www.w3.org/TR/short-name/
shortName : "wai-aria-practices-1.1",

// If you wish the publication date to be other than today,
// set publishDate.
// publishDate: "2009-08-06",
copyrightStart : "2015",

// If there is a previously published draft, uncomment this
// and set its YYYY-MM-DD date and its maturity status.
//
// previousPublishDate: "",
// previousMaturity: "",
// prevRecURI: "",
// previousDiffURI: "",

// If there a publicly available Editors Draft, this is the link
edDraftURI : "http://w3c.github.io/aria-practices/",

// If this is a LCWD, uncomment and set the end of its review period
// lcEnd: "2012-02-21",

// Editors, add as many as you like.
// “name” is the only required field.
editors : [ {
name : "Matt King",
mailto : "mck@fb.com",
company : "Facebook",
companyURI : "http://www.facebook.com/"
}, {
name : "James Nurthen",
mailto : "james.nurthen@oracle.com",
company : "Oracle Corporation",
companyURI : "http://www.oracle.com/"
}, {
name : "Michael Cooper",
url : 'http://www.w3.org/People/cooper/',
mailto : "cooper@w3.org",
company : "W3C",
companyURI : "http://www.w3.org/"
}, {
name : "Michiel Bijl",
mailto : "mbijl@paciellogroup.com",
company : "The Paciello Group",
companyURI : "https://www.paciellogroup.com/"
}, {
name : "Joseph Scheuhammer",
company : "Inclusive Design Research Centre, OCAD University",
companyURI : "http://idrc.ocad.ca/",
note : "Previous Editor"
}, {
name : "Lisa Pappas",
company : "SAS",
companyURI : "http://www.sas.com/",
note : "Previous Editor"
}, {
name : "Rich Schwerdtfeger",
company : "IBM Corporation",
companyURI : "http://ibm.com/",
note : "Previous Editor"
}, ],

// Authors, add as many as you like.
// This is optional, uncomment if you have authors as well as editors.
// Same format and requirements as editors.

// authors: [
// {
// name: "Your Name",
// url: "http://example.org/",
// company: "Your Company",
// companyURI: "http://example.com/"
// },
// ],

// Spec URLs
ariaSpecURLs : {
"ED" : "http://w3c.github.io/aria/aria/aria.html",
"FPWD" : "http://www.w3.org/TR/wai-aria-1.1/",
"WD" : "http://www.w3.org/TR/wai-aria-1.1/",
"REC" : "http://www.w3.org/TR/wai-aria/"
},
accNameURLs : {
"ED" : "http://w3c.github.io/aria/accname-aam/accname-aam.html",
"WD" : "http://www.w3.org/TR/accname-aam-1.1/",
"FPWD" : "http://www.w3.org/TR/accname-aam-1.1/",
"REC" : "http://www.w3.org/TR/accname-aam-1.1/"
},
coreMappingURLs : {
"ED" : "http://w3c.github.io/aria/core-aam/core-aam.html",
"WD" : "http://www.w3.org/TR/core-aam-1.1/",
"FPWD" : "http://www.w3.org/TR/core-aam-1.1/",
"REC" : "http://www.w3.org/TR/core-aam-1.1/"
},

// alternateFormats: [
// {
// uri: 'aria-practices-diff.html',
// label: "Diff from Previous Recommendation"
// },
// {
// uri: 'aria-practices.ps',
// label: "PostScript version"
// },
// {
// uri: 'aria-practices.pdf',
// label: "PDF version"
// }
// ],

// errata: 'http://www.w3.org/2010/02/rdfa/errata.html',

// name of the WG
wg : "Accessible Rich Internet Applications Working Group",

// URI of the public WG page
wgURI : "http://www.w3.org/WAI/ARIA/",

// Name (without the @w3c.org) of the public mailing
// to which comments are due.
wgPublicList : "public-aria",

// URI of the patent status for this WG, for Rec-track documents
// !!!! IMPORTANT !!!!
// This is important for Rec-track documents, do not copy a patent URI
// from a random document unless you know what you're doing.
// If in doubt ask your friendly neighbourhood Team Contact.
wgPatentURI : "http://www.w3.org/2004/01/pp-impl/83726/status",
maxTocLevel : 4,

localBiblio : biblio,

preProcess : [ linkCrossReferences ]
};
</script>
<link href="common/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<section id="abstract">
Expand Down

0 comments on commit 4e182da

Please sign in to comment.