diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-30 20:44:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-30 20:44:54 -0500 |
commit | 9e83faa02c136da9e4749b696d8c7a0b363c0745 (patch) | |
tree | aa0b5d7f4ee78a870da84e80e4eef266c2485570 /test/data/html | |
parent | 60c38ab83c429d9e4853dbd4ea9fa06eb8f9efa6 (diff) |
Html lint (#1336)
* Move style rules
* Fix non-unique IDs
* Remove erroneous ids
* Add title
* Fix invalid closing tag
* Install html-validate
* Add .htmlvalidate.json
* Update HTML and styles
* Add test-lint-html
* Update test files
* Update test-lint-html/css commands to have more explicit targets
Diffstat (limited to 'test/data/html')
-rw-r--r-- | test/data/html/test-document1.html | 10 | ||||
-rw-r--r-- | test/data/html/test-document2-frame1.html | 2 | ||||
-rw-r--r-- | test/data/html/test-document2.html | 14 | ||||
-rw-r--r-- | test/data/html/test-document3-frame1.html | 4 | ||||
-rw-r--r-- | test/data/html/test-document3-frame2.html | 4 | ||||
-rw-r--r-- | test/data/html/test-document3.html | 6 | ||||
-rw-r--r-- | test/data/html/test-dom-text-scanner.html | 8 |
7 files changed, 24 insertions, 24 deletions
diff --git a/test/data/html/test-document1.html b/test/data/html/test-document1.html index 3b702a86..3776ef99 100644 --- a/test/data/html/test-document1.html +++ b/test/data/html/test-document1.html @@ -2,10 +2,10 @@ <html> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Yomichan Tests</title> - <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw==" /> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw=="> + <link rel="stylesheet" href="test-stylesheet.css"> </head> <body> @@ -105,7 +105,7 @@ data-sentence="真白「心配してくださって、ありがとございます」" data-has-imposter="true" > - <input type="text" value="真白「心配してくださって、ありがとございます」" style="width: 100%; box-sizing: border-box; font-family: inherit; font-size: inherit; border: 1px solid #d8d8d8; padding: 0.2em;" /> + <input type="text" value="真白「心配してくださって、ありがとございます」" style="width: 100%; box-sizing: border-box; font-family: inherit; font-size: inherit; border: 1px solid #d8d8d8; padding: 0.2em;"> </div> <div @@ -154,7 +154,7 @@ data-sentence-scan-extent="100" data-sentence="よみちゃん" > - <img src="data:image/gif;base64,R0lGODdhBwAHAIABAAAAAP///ywAAAAABwAHAAACDIRvEaC32FpCbEkKCgA7" alt="よみちゃん" title="よみちゃん" style="width: 70px; height: 70px; image-rendering: crisp-edges; image-rendering: pixelated; display: block;" /> + <img src="data:image/gif;base64,R0lGODdhBwAHAIABAAAAAP///ywAAAAABwAHAAACDIRvEaC32FpCbEkKCgA7" alt="よみちゃん" title="よみちゃん" style="width: 70px; height: 70px; image-rendering: crisp-edges; image-rendering: pixelated; display: block;"> </div> <div diff --git a/test/data/html/test-document2-frame1.html b/test/data/html/test-document2-frame1.html index e572e3c4..930cc78c 100644 --- a/test/data/html/test-document2-frame1.html +++ b/test/data/html/test-document2-frame1.html @@ -2,7 +2,7 @@ <html> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Yomichan Tests</title> <script src="test-document2-script.js"></script> <style> diff --git a/test/data/html/test-document2.html b/test/data/html/test-document2.html index 419cb5c1..7f7120d2 100644 --- a/test/data/html/test-document2.html +++ b/test/data/html/test-document2.html @@ -2,10 +2,10 @@ <html> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Yomichan Manual Tests</title> - <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw==" /> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw=="> + <link rel="stylesheet" href="test-stylesheet.css"> <script src="test-document2-script.js"></script> </head> <style id="container-styles"> @@ -47,7 +47,7 @@ <y-description>Content inside of an open shadow DOM.</y-description> <div class="template-content-container"></div> <template> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="stylesheet" href="test-stylesheet.css"> <div class="fullscreen-element container"><div class="container-inner"> <div> ありがとう @@ -63,7 +63,7 @@ <y-description>Content inside of a closed shadow DOM.</y-description> <div class="template-content-container"></div> <template> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="stylesheet" href="test-stylesheet.css"> <div class="fullscreen-element container"><div class="container-inner"> <div> ありがとう @@ -108,7 +108,7 @@ <y-test> <y-description>SVG <img>.</y-description> - <img src="test-document2-frame2.svg" class="container"> + <img src="test-document2-frame2.svg" class="container" alt=""> </y-test> <y-test> @@ -128,7 +128,7 @@ <y-test> <y-description>SVG <svg>.</y-description> - <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="container" style="background-color: #f8f8f8;"> + <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="container" style="background-color: #f8f8f8;" focusable="false"> <text x="7" y="12" diff --git a/test/data/html/test-document3-frame1.html b/test/data/html/test-document3-frame1.html index 2ae906d2..6536e6d2 100644 --- a/test/data/html/test-document3-frame1.html +++ b/test/data/html/test-document3-frame1.html @@ -2,9 +2,9 @@ <html> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Yomichan Manual Performance Tests</title> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="stylesheet" href="test-stylesheet.css"> </head> <body><div class="content"> diff --git a/test/data/html/test-document3-frame2.html b/test/data/html/test-document3-frame2.html index c486e04b..b88162b5 100644 --- a/test/data/html/test-document3-frame2.html +++ b/test/data/html/test-document3-frame2.html @@ -2,9 +2,9 @@ <html> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Yomichan Manual Performance Tests</title> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="stylesheet" href="test-stylesheet.css"> </head> <body><div class="content"> diff --git a/test/data/html/test-document3.html b/test/data/html/test-document3.html index 3e7d5236..6a227daa 100644 --- a/test/data/html/test-document3.html +++ b/test/data/html/test-document3.html @@ -2,10 +2,10 @@ <html> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Yomichan Manual Performance Tests</title> - <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw==" /> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw=="> + <link rel="stylesheet" href="test-stylesheet.css"> </head> <body> diff --git a/test/data/html/test-dom-text-scanner.html b/test/data/html/test-dom-text-scanner.html index dc06eb64..9a9ea95d 100644 --- a/test/data/html/test-dom-text-scanner.html +++ b/test/data/html/test-dom-text-scanner.html @@ -2,10 +2,10 @@ <html> <head> <meta charset="UTF-8"> - <meta name="viewport" content="width=device-width,initial-scale=1" /> + <meta name="viewport" content="width=device-width,initial-scale=1"> <title>Yomichan DOMTextScanner Tests</title> - <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw==" /> - <link rel="stylesheet" href="test-stylesheet.css" /> + <link rel="icon" type="image/gif" href="data:image/gif;base64,R0lGODlhEAAQAKEBAAAAAP///////////yH5BAEKAAIALAAAAAAQABAAAAImFI6Zpt0B4YkS0TCpq07xbmEgcGVRUpLaI46ZG7ppalY0jDCwUAAAOw=="> + <link rel="stylesheet" href="test-stylesheet.css"> </head> <body> @@ -274,7 +274,7 @@ }' > <y-description>Skip <input> content.</y-description> -<div>小ぢん<input value="content" />まり1</div> +<div>小ぢん<input value="content">まり1</div> </y-test> <y-test |