Skip to content

Commit

Permalink
cc Add relative path-slash-pile-of-poo test
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker authored and zcorpan committed Nov 25, 2022
1 parent 2f1584e commit 9be6704
Show file tree
Hide file tree
Showing 26 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/a/href-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<a href="::"></a><!-- path-leading-colon-colon-relative -->
<a href="::23"></a><!-- path-colon-colon-number-relative -->
<a href="💩http://foo"></a><!-- path-starts-with-pile-of-poo -->
<a href="/💩"></a><!-- path-slash-pile-of-poo -->
<a href="File://foo/bar.html"></a><!-- scheme-file-uppercase -->
<a href="file://C|/foo/bar"></a><!-- scheme-file-slash-slash-c-bar -->
<a href="file://server/foo/bar"></a><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/area/href-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<map name=foo><area href="::" alt></map><!-- path-leading-colon-colon-relative -->
<map name=foo><area href="::23" alt></map><!-- path-colon-colon-number-relative -->
<map name=foo><area href="💩http://foo" alt></map><!-- path-starts-with-pile-of-poo -->
<map name=foo><area href="/💩" alt></map><!-- path-slash-pile-of-poo -->
<map name=foo><area href="File://foo/bar.html" alt></map><!-- scheme-file-uppercase -->
<map name=foo><area href="file://C|/foo/bar" alt></map><!-- scheme-file-slash-slash-c-bar -->
<map name=foo><area href="file://server/foo/bar" alt></map><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/audio/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<audio src="::"></audio><!-- path-leading-colon-colon-relative -->
<audio src="::23"></audio><!-- path-colon-colon-number-relative -->
<audio src="💩http://foo"></audio><!-- path-starts-with-pile-of-poo -->
<audio src="/💩"></audio><!-- path-slash-pile-of-poo -->
<audio src="File://foo/bar.html"></audio><!-- scheme-file-uppercase -->
<audio src="file://C|/foo/bar"></audio><!-- scheme-file-slash-slash-c-bar -->
<audio src="file://server/foo/bar"></audio><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>valid href: path-slash-pile-of-poo</title>
<base href="/💩">
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<blockquote cite="::"></blockquote><!-- path-leading-colon-colon-relative -->
<blockquote cite="::23"></blockquote><!-- path-colon-colon-number-relative -->
<blockquote cite="💩http://foo"></blockquote><!-- path-starts-with-pile-of-poo -->
<blockquote cite="/💩"></blockquote><!-- path-slash-pile-of-poo -->
<blockquote cite="File://foo/bar.html"></blockquote><!-- scheme-file-uppercase -->
<blockquote cite="file://C|/foo/bar"></blockquote><!-- scheme-file-slash-slash-c-bar -->
<blockquote cite="file://server/foo/bar"></blockquote><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<button formaction="::"></button><!-- path-leading-colon-colon-relative -->
<button formaction="::23"></button><!-- path-colon-colon-number-relative -->
<button formaction="💩http://foo"></button><!-- path-starts-with-pile-of-poo -->
<button formaction="/💩"></button><!-- path-slash-pile-of-poo -->
<button formaction="File://foo/bar.html"></button><!-- scheme-file-uppercase -->
<button formaction="file://C|/foo/bar"></button><!-- scheme-file-slash-slash-c-bar -->
<button formaction="file://server/foo/bar"></button><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/del/cite-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<del cite="::"></del><!-- path-leading-colon-colon-relative -->
<del cite="::23"></del><!-- path-colon-colon-number-relative -->
<del cite="💩http://foo"></del><!-- path-starts-with-pile-of-poo -->
<del cite="/💩"></del><!-- path-slash-pile-of-poo -->
<del cite="File://foo/bar.html"></del><!-- scheme-file-uppercase -->
<del cite="file://C|/foo/bar"></del><!-- scheme-file-slash-slash-c-bar -->
<del cite="file://server/foo/bar"></del><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/embed/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<embed src="::"><!-- path-leading-colon-colon-relative -->
<embed src="::23"><!-- path-colon-colon-number-relative -->
<embed src="💩http://foo"><!-- path-starts-with-pile-of-poo -->
<embed src="/💩"><!-- path-slash-pile-of-poo -->
<embed src="File://foo/bar.html"><!-- scheme-file-uppercase -->
<embed src="file://C|/foo/bar"><!-- scheme-file-slash-slash-c-bar -->
<embed src="file://server/foo/bar"><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<form action="::"></form><!-- path-leading-colon-colon-relative -->
<form action="::23"></form><!-- path-colon-colon-number-relative -->
<form action="💩http://foo"></form><!-- path-starts-with-pile-of-poo -->
<form action="/💩"></form><!-- path-slash-pile-of-poo -->
<form action="File://foo/bar.html"></form><!-- scheme-file-uppercase -->
<form action="file://C|/foo/bar"></form><!-- scheme-file-slash-slash-c-bar -->
<form action="file://server/foo/bar"></form><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/iframe/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<iframe src="::"></iframe><!-- path-leading-colon-colon-relative -->
<iframe src="::23"></iframe><!-- path-colon-colon-number-relative -->
<iframe src="💩http://foo"></iframe><!-- path-starts-with-pile-of-poo -->
<iframe src="/💩"></iframe><!-- path-slash-pile-of-poo -->
<iframe src="File://foo/bar.html"></iframe><!-- scheme-file-uppercase -->
<iframe src="file://C|/foo/bar"></iframe><!-- scheme-file-slash-slash-c-bar -->
<iframe src="file://server/foo/bar"></iframe><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/img/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<img src="::" alt><!-- path-leading-colon-colon-relative -->
<img src="::23" alt><!-- path-colon-colon-number-relative -->
<img src="💩http://foo" alt><!-- path-starts-with-pile-of-poo -->
<img src="/💩" alt><!-- path-slash-pile-of-poo -->
<img src="File://foo/bar.html" alt><!-- scheme-file-uppercase -->
<img src="file://C|/foo/bar" alt><!-- scheme-file-slash-slash-c-bar -->
<img src="file://server/foo/bar" alt><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<input type=image alt="foo" formaction="::"><!-- path-leading-colon-colon-relative -->
<input type=image alt="foo" formaction="::23"><!-- path-colon-colon-number-relative -->
<input type=image alt="foo" formaction="💩http://foo"><!-- path-starts-with-pile-of-poo -->
<input type=image alt="foo" formaction="/💩"><!-- path-slash-pile-of-poo -->
<input type=image alt="foo" formaction="File://foo/bar.html"><!-- scheme-file-uppercase -->
<input type=image alt="foo" formaction="file://C|/foo/bar"><!-- scheme-file-slash-slash-c-bar -->
<input type=image alt="foo" formaction="file://server/foo/bar"><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<input type=image alt="foo" src="::"><!-- path-leading-colon-colon-relative -->
<input type=image alt="foo" src="::23"><!-- path-colon-colon-number-relative -->
<input type=image alt="foo" src="💩http://foo"><!-- path-starts-with-pile-of-poo -->
<input type=image alt="foo" src="/💩"><!-- path-slash-pile-of-poo -->
<input type=image alt="foo" src="File://foo/bar.html"><!-- scheme-file-uppercase -->
<input type=image alt="foo" src="file://C|/foo/bar"><!-- scheme-file-slash-slash-c-bar -->
<input type=image alt="foo" src="file://server/foo/bar"><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<input type=submit formaction="::"><!-- path-leading-colon-colon-relative -->
<input type=submit formaction="::23"><!-- path-colon-colon-number-relative -->
<input type=submit formaction="💩http://foo"><!-- path-starts-with-pile-of-poo -->
<input type=submit formaction="/💩"><!-- path-slash-pile-of-poo -->
<input type=submit formaction="File://foo/bar.html"><!-- scheme-file-uppercase -->
<input type=submit formaction="file://C|/foo/bar"><!-- scheme-file-slash-slash-c-bar -->
<input type=submit formaction="file://server/foo/bar"><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/ins/cite-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<ins cite="::"></ins><!-- path-leading-colon-colon-relative -->
<ins cite="::23"></ins><!-- path-colon-colon-number-relative -->
<ins cite="💩http://foo"></ins><!-- path-starts-with-pile-of-poo -->
<ins cite="/💩"></ins><!-- path-slash-pile-of-poo -->
<ins cite="File://foo/bar.html"></ins><!-- scheme-file-uppercase -->
<ins cite="file://C|/foo/bar"></ins><!-- scheme-file-slash-slash-c-bar -->
<ins cite="file://server/foo/bar"></ins><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/link/href-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<link href="::" rel=help><!-- path-leading-colon-colon-relative -->
<link href="::23" rel=help><!-- path-colon-colon-number-relative -->
<link href="💩http://foo" rel=help><!-- path-starts-with-pile-of-poo -->
<link href="/💩" rel=help><!-- path-slash-pile-of-poo -->
<link href="File://foo/bar.html" rel=help><!-- scheme-file-uppercase -->
<link href="file://C|/foo/bar" rel=help><!-- scheme-file-slash-slash-c-bar -->
<link href="file://server/foo/bar" rel=help><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<meta http-equiv=refresh content="0; URL=::"><!-- path-leading-colon-colon-relative -->
<meta http-equiv=refresh content="0; URL=::23"><!-- path-colon-colon-number-relative -->
<meta http-equiv=refresh content="0; URL=💩http://foo"><!-- path-starts-with-pile-of-poo -->
<meta http-equiv=refresh content="0; URL=/💩"><!-- path-slash-pile-of-poo -->
<meta http-equiv=refresh content="0; URL=File://foo/bar.html"><!-- scheme-file-uppercase -->
<meta http-equiv=refresh content="0; URL=file://C|/foo/bar"><!-- scheme-file-slash-slash-c-bar -->
<meta http-equiv=refresh content="0; URL=file://server/foo/bar"><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<object data="::"></object><!-- path-leading-colon-colon-relative -->
<object data="::23"></object><!-- path-colon-colon-number-relative -->
<object data="💩http://foo"></object><!-- path-starts-with-pile-of-poo -->
<object data="/💩"></object><!-- path-slash-pile-of-poo -->
<object data="File://foo/bar.html"></object><!-- scheme-file-uppercase -->
<object data="file://C|/foo/bar"></object><!-- scheme-file-slash-slash-c-bar -->
<object data="file://server/foo/bar"></object><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/q/cite-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<q cite="::"></q><!-- path-leading-colon-colon-relative -->
<q cite="::23"></q><!-- path-colon-colon-number-relative -->
<q cite="💩http://foo"></q><!-- path-starts-with-pile-of-poo -->
<q cite="/💩"></q><!-- path-slash-pile-of-poo -->
<q cite="File://foo/bar.html"></q><!-- scheme-file-uppercase -->
<q cite="file://C|/foo/bar"></q><!-- scheme-file-slash-slash-c-bar -->
<q cite="file://server/foo/bar"></q><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/script/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<script src="::"></script><!-- path-leading-colon-colon-relative -->
<script src="::23"></script><!-- path-colon-colon-number-relative -->
<script src="💩http://foo"></script><!-- path-starts-with-pile-of-poo -->
<script src="/💩"></script><!-- path-slash-pile-of-poo -->
<script src="File://foo/bar.html"></script><!-- scheme-file-uppercase -->
<script src="file://C|/foo/bar"></script><!-- scheme-file-slash-slash-c-bar -->
<script src="file://server/foo/bar"></script><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/source/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<video><source src="::"></video><!-- path-leading-colon-colon-relative -->
<video><source src="::23"></video><!-- path-colon-colon-number-relative -->
<video><source src="💩http://foo"></video><!-- path-starts-with-pile-of-poo -->
<video><source src="/💩"></video><!-- path-slash-pile-of-poo -->
<video><source src="File://foo/bar.html"></video><!-- scheme-file-uppercase -->
<video><source src="file://C|/foo/bar"></video><!-- scheme-file-slash-slash-c-bar -->
<video><source src="file://server/foo/bar"></video><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/track/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<video><track src="::"></video><!-- path-leading-colon-colon-relative -->
<video><track src="::23"></video><!-- path-colon-colon-number-relative -->
<video><track src="💩http://foo"></video><!-- path-starts-with-pile-of-poo -->
<video><track src="/💩"></video><!-- path-slash-pile-of-poo -->
<video><track src="File://foo/bar.html"></video><!-- scheme-file-uppercase -->
<video><track src="file://C|/foo/bar"></video><!-- scheme-file-slash-slash-c-bar -->
<video><track src="file://server/foo/bar"></video><!-- scheme-file-host-included -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<video poster="::"></video><!-- path-leading-colon-colon-relative -->
<video poster="::23"></video><!-- path-colon-colon-number-relative -->
<video poster="💩http://foo"></video><!-- path-starts-with-pile-of-poo -->
<video poster="/💩"></video><!-- path-slash-pile-of-poo -->
<video poster="File://foo/bar.html"></video><!-- scheme-file-uppercase -->
<video poster="file://C|/foo/bar"></video><!-- scheme-file-slash-slash-c-bar -->
<video poster="file://server/foo/bar"></video><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/elements/video/src-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<video src="::"></video><!-- path-leading-colon-colon-relative -->
<video src="::23"></video><!-- path-colon-colon-number-relative -->
<video src="💩http://foo"></video><!-- path-starts-with-pile-of-poo -->
<video src="/💩"></video><!-- path-slash-pile-of-poo -->
<video src="File://foo/bar.html"></video><!-- scheme-file-uppercase -->
<video src="file://C|/foo/bar"></video><!-- scheme-file-slash-slash-c-bar -->
<video src="file://server/foo/bar"></video><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/html/microdata/itemid-isvalid.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
<div itemid="::" itemtype="http://foo" itemscope></div><!-- path-leading-colon-colon-relative -->
<div itemid="::23" itemtype="http://foo" itemscope></div><!-- path-colon-colon-number-relative -->
<div itemid="💩http://foo" itemtype="http://foo" itemscope></div><!-- path-starts-with-pile-of-poo -->
<div itemid="/💩" itemtype="http://foo" itemscope></div><!-- path-slash-pile-of-poo -->
<div itemid="File://foo/bar.html" itemtype="http://foo" itemscope></div><!-- scheme-file-uppercase -->
<div itemid="file://C|/foo/bar" itemtype="http://foo" itemscope></div><!-- scheme-file-slash-slash-c-bar -->
<div itemid="file://server/foo/bar" itemtype="http://foo" itemscope></div><!-- scheme-file-host-included -->
Expand Down
1 change: 1 addition & 0 deletions conformance-checkers/tools/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
"path-colon-colon-number-relative": "::23",
"path-starts-with-pile-of-poo": "💩http://foo",
"path-contains-pile-of-poo": "http💩//:foo",
"path-slash-pile-of-poo": "/💩",
}
valid.update(valid_relative_colon_dot)

Expand Down

0 comments on commit 9be6704

Please sign in to comment.