Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset=utf-8>
<title>valid formaction</title>
<button formaction="a:foo.com"></button><!-- scheme-private -->
<button formaction="foo:/"></button><!-- scheme-private-slash -->
<button formaction="foo://"></button><!-- scheme-private-slash-slash -->
<button formaction="foo:/bar.com/"></button><!-- scheme-private-path -->
<button formaction="foo://///////bar.com/"></button><!-- scheme-private-path-leading-slashes-chars -->
<button formaction="foo:////://///"></button><!-- scheme-private-path-leading-slashes-colon-slashes -->
<button formaction="c:/foo"></button><!-- scheme-private-single-letter -->
<button formaction="madeupscheme:/example.com/"></button><!-- scheme-private-single-slash -->
<button formaction="file:/example.com/"></button><!-- scheme-file-single-slash -->
<button formaction="ftps:/example.com/"></button><!-- scheme-ftps-single-slash -->
<button formaction="gopher:/example.com/"></button><!-- scheme-gopher-single-slash -->
<button formaction="ws:/example.com/"></button><!-- scheme-ws-single-slash -->
<button formaction="wss:/example.com/"></button><!-- scheme-wss-single-slash -->
<button formaction="javascript:/example.com/"></button><!-- scheme-javascript-single-slash -->
<button formaction="mailto:/example.com/"></button><!-- scheme-mailto-single-slash -->
<button formaction="madeupscheme:example.com/"></button><!-- scheme-private-no-slash -->
<button formaction="ftps:example.com/"></button><!-- scheme-ftps-no-slash -->
<button formaction="gopher:example.com/"></button><!-- scheme-gopher-no-slash -->
<button formaction="wss:example.com/"></button><!-- scheme-wss-no-slash -->
<button formaction="mailto:example.com/"></button><!-- scheme-mailto-no-slash -->
<button formaction="data:text/plain,foo"></button><!-- scheme-data-no-slash -->
<button formaction="http://f:00000000000000000000080/c"></button><!-- port-00000000000000000000080 -->
<button formaction="http://example.com/%3A%3a%3C%3c"></button><!-- path-percent-encoded-mixed-case -->
<button formaction="http💩//:foo"></button><!-- path-contains-pile-of-poo -->
<button formaction="http://%25DOMAIN:foobar@foodomain.com"></button><!-- userinfo-username-contains-percent-encoded -->
<button formaction="//foo/bar"></button><!-- scheme-schemeless-relative -->
<button formaction="/"></button><!-- path-slash-only-relative -->
<button formaction="/a/b/c"></button><!-- path-simple-relative -->
<button formaction="/a%2fc"></button><!-- path-percent-encoded-slash-relative -->
<button formaction="/a/%2f/c"></button><!-- path-percent-encoded-slash-plus-slashes-relative -->
<button formaction="?"></button><!-- query-empty-no-path-relative -->
<button formaction="#"></button><!-- fragment-empty-hash-only-no-path-relative -->
<button formaction="#/"></button><!-- fragment-slash-relative -->
<button formaction="#;?"></button><!-- fragment-semicolon-question-mark-relative -->
<button formaction="#β"></button><!-- fragment-non-ascii-relative -->
<button formaction="foo.com"></button><!-- scheme-none-relative -->
<button formaction=":"></button><!-- path-colon-relative -->
<button formaction=":a"></button><!-- path-leading-colon-letter-relative -->
<button formaction=":foo.com"></button><!-- path-leading-colon-chars-relative -->
<button formaction=":/"></button><!-- path-leading-colon-slash-relative -->
<button formaction=":#"></button><!-- path-leading-colon-hash-relative -->
<button formaction=":23"></button><!-- path-leading-colon-number-relative -->
<button formaction="/:23"></button><!-- path-slash-colon-number-relative -->
<button formaction="::"></button><!-- path-leading-colon-colon-relative -->
<button formaction="::23"></button><!-- path-colon-colon-number-relative -->
<button formaction="/💩"></button><!-- path-slash-pile-of-poo -->
<button formaction="file:"></button><!-- scheme-file-scheme-only -->
<button formaction="file:/"></button><!-- scheme-file-slash-only -->
<button formaction="file://"></button><!-- scheme-file-slash-slash-only -->
<button formaction="file:test"></button><!-- scheme-file-no-slash -->