├── example_test.png ├── vendor ├── golang.org │ └── x │ │ └── net │ │ └── html │ │ ├── charset │ │ └── testdata │ │ │ ├── UTF-16BE-BOM.html │ │ │ ├── UTF-16LE-BOM.html │ │ │ ├── README │ │ │ ├── No-encoding-declaration.html │ │ │ ├── HTTP-charset.html │ │ │ ├── meta-charset-attribute.html │ │ │ ├── meta-content-attribute.html │ │ │ ├── HTTP-vs-meta-charset.html │ │ │ ├── UTF-8-BOM-vs-meta-charset.html │ │ │ ├── UTF-8-BOM-vs-meta-content.html │ │ │ ├── HTTP-vs-UTF-8-BOM.html │ │ │ └── HTTP-vs-meta-content.html │ │ ├── testdata │ │ └── webkit │ │ │ ├── pending-spec-changes-plain-text-unsafe.dat │ │ │ ├── scripted │ │ │ ├── adoption01.dat │ │ │ └── webkit01.dat │ │ │ ├── adoption02.dat │ │ │ ├── inbody01.dat │ │ │ ├── isindex.dat │ │ │ ├── tests4.dat │ │ │ ├── tests24.dat │ │ │ ├── tests14.dat │ │ │ ├── pending-spec-changes.dat │ │ │ ├── README │ │ │ ├── tests12.dat │ │ │ ├── comments01.dat │ │ │ ├── tests17.dat │ │ │ ├── webkit02.dat │ │ │ ├── adoption01.dat │ │ │ ├── tests21.dat │ │ │ ├── tests25.dat │ │ │ ├── tests23.dat │ │ │ ├── tables01.dat │ │ │ ├── html5test-com.dat │ │ │ ├── tests22.dat │ │ │ ├── tests8.dat │ │ │ ├── tests5.dat │ │ │ ├── entities02.dat │ │ │ ├── tests15.dat │ │ │ ├── tricky01.dat │ │ │ ├── tests18.dat │ │ │ ├── scriptdata01.dat │ │ │ ├── plain-text-unsafe.dat │ │ │ ├── tests3.dat │ │ │ └── tests26.dat │ │ ├── example_test.go │ │ ├── entity_test.go │ │ ├── escape_test.go │ │ ├── atom │ │ ├── atom.go │ │ ├── atom_test.go │ │ └── table_test.go │ │ ├── const.go │ │ ├── render_test.go │ │ ├── doc.go │ │ ├── node_test.go │ │ ├── doctype.go │ │ └── node.go └── github.com │ └── mb0 │ └── diff │ ├── README.md │ ├── LICENSE │ ├── example_test.go │ ├── diff_test.go │ └── diff.go ├── .gitignore ├── benchmark_test.go ├── LICENSE ├── example_test.go ├── pos.go ├── README.md ├── example_test.html ├── vizhtml └── viztree.go ├── nodes.go ├── clean.go ├── treerunes.go ├── fuzz.go ├── htmldiff.go └── append.go /example_test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/documize/html-diff/HEAD/example_test.png -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/documize/html-diff/HEAD/vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/documize/html-diff/HEAD/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/pending-spec-changes-plain-text-unsafe.dat: -------------------------------------------------------------------------------- 1 | #data 2 | fillertext 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | "fillertext" 9 | |
10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/scripted/adoption01.dat: -------------------------------------------------------------------------------- 1 | #data 2 |

TEXT 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | |

9 | | 10 | | id="B" 11 | | 3 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | "1" 9 | | 4 15 | #errors 16 | #document 17 | | 18 | | 19 | | 20 | | "1" 21 | | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 |

No encoding declaration

18 | 19 | 20 |
21 | 22 | 23 |
 
24 | 25 | 26 | 27 | 28 | 29 |
30 |

A page with no encoding information in HTTP, BOM, XML declaration or meta element will be treated as UTF-8.

31 |

The test on this page contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ýäè. This matches the sequence of bytes above when they are interpreted as UTF-8. If the class name matches the selector then the test will pass.

32 |
33 |
34 |
Next test
HTML5
35 |

the-input-byte-stream-015
Result summary & related tests
Detailed results for this test
Link to spec

36 |
Assumptions:
  • The test is read from a server that supports HTTP.
37 |
38 | 43 | 44 | 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/atom/atom_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package atom 6 | 7 | import ( 8 | "sort" 9 | "testing" 10 | ) 11 | 12 | func TestKnown(t *testing.T) { 13 | for _, s := range testAtomList { 14 | if atom := Lookup([]byte(s)); atom.String() != s { 15 | t.Errorf("Lookup(%q) = %#x (%q)", s, uint32(atom), atom.String()) 16 | } 17 | } 18 | } 19 | 20 | func TestHits(t *testing.T) { 21 | for _, a := range table { 22 | if a == 0 { 23 | continue 24 | } 25 | got := Lookup([]byte(a.String())) 26 | if got != a { 27 | t.Errorf("Lookup(%q) = %#x, want %#x", a.String(), uint32(got), uint32(a)) 28 | } 29 | } 30 | } 31 | 32 | func TestMisses(t *testing.T) { 33 | testCases := []string{ 34 | "", 35 | "\x00", 36 | "\xff", 37 | "A", 38 | "DIV", 39 | "Div", 40 | "dIV", 41 | "aa", 42 | "a\x00", 43 | "ab", 44 | "abb", 45 | "abbr0", 46 | "abbr ", 47 | " abbr", 48 | " a", 49 | "acceptcharset", 50 | "acceptCharset", 51 | "accept_charset", 52 | "h0", 53 | "h1h2", 54 | "h7", 55 | "onClick", 56 | "λ", 57 | // The following string has the same hash (0xa1d7fab7) as "onmouseover". 58 | "\x00\x00\x00\x00\x00\x50\x18\xae\x38\xd0\xb7", 59 | } 60 | for _, tc := range testCases { 61 | got := Lookup([]byte(tc)) 62 | if got != 0 { 63 | t.Errorf("Lookup(%q): got %d, want 0", tc, got) 64 | } 65 | } 66 | } 67 | 68 | func TestForeignObject(t *testing.T) { 69 | const ( 70 | afo = Foreignobject 71 | afO = ForeignObject 72 | sfo = "foreignobject" 73 | sfO = "foreignObject" 74 | ) 75 | if got := Lookup([]byte(sfo)); got != afo { 76 | t.Errorf("Lookup(%q): got %#v, want %#v", sfo, got, afo) 77 | } 78 | if got := Lookup([]byte(sfO)); got != afO { 79 | t.Errorf("Lookup(%q): got %#v, want %#v", sfO, got, afO) 80 | } 81 | if got := afo.String(); got != sfo { 82 | t.Errorf("Atom(%#v).String(): got %q, want %q", afo, got, sfo) 83 | } 84 | if got := afO.String(); got != sfO { 85 | t.Errorf("Atom(%#v).String(): got %q, want %q", afO, got, sfO) 86 | } 87 | } 88 | 89 | func BenchmarkLookup(b *testing.B) { 90 | sortedTable := make([]string, 0, len(table)) 91 | for _, a := range table { 92 | if a != 0 { 93 | sortedTable = append(sortedTable, a.String()) 94 | } 95 | } 96 | sort.Strings(sortedTable) 97 | 98 | x := make([][]byte, 1000) 99 | for i := range x { 100 | x[i] = []byte(sortedTable[i%len(sortedTable)]) 101 | } 102 | 103 | b.ResetTimer() 104 | for i := 0; i < b.N; i++ { 105 | for _, s := range x { 106 | Lookup(s) 107 | } 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/HTTP-charset.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HTTP charset 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 |

HTTP charset

18 | 19 | 20 |
21 | 22 | 23 |
 
24 | 25 | 26 | 27 | 28 | 29 |
30 |

The character encoding of a page can be set using the HTTP header charset declaration.

31 |

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ÜÀÚ. This matches the sequence of bytes above when they are interpreted as ISO 8859-15. If the class name matches the selector then the test will pass.

The only character encoding declaration for this HTML file is in the HTTP header, which sets the encoding to ISO 8859-15.

32 |
33 |
34 |
Next test
HTML5
35 |

the-input-byte-stream-001
Result summary & related tests
Detailed results for this test
Link to spec

36 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 37 |
  • The test is read from a server that supports HTTP.
38 |
39 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/tests17.dat: -------------------------------------------------------------------------------- 1 | #data 2 |
3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | |
11 | | 12 | | 13 | 14 | #data 15 |
16 | #errors 17 | #document 18 | | 19 | | 20 | | 21 | | 22 | | 24 | | 25 | | 26 | |
27 | 28 | #data 29 |
30 | #errors 31 | #document 32 | | 33 | | 34 | | 35 | | 36 | | 37 | | 38 | | 39 | |
40 | | 42 | 43 | #data 44 |
45 | #errors 46 | #document 47 | | 48 | | 49 | | 50 | | 51 | | 52 | | 53 | | 54 | |
55 | | 57 | 58 | #data 59 | 60 | #errors 61 | #document 62 | | 63 | | 64 | | 65 | | 66 | |
67 | | 70 | | 71 | 72 | #data 73 | 74 | #errors 75 | #document 76 | | 77 | | 78 | | 79 | | 80 | | 104 | #errors 105 | #document 106 | | 107 | | 108 | | 109 | | 110 | | 114 | #errors 115 | #document 116 | | 117 | | 118 | | 119 | | 120 | | 124 | #errors 125 | #document 126 | | 127 | | 128 | | 129 | | 130 | |
68 | |
84 | #errors 85 | #document 86 | | 87 | | 88 | | 89 | | 90 | | 94 | #errors 95 | #document 96 | | 97 | | 98 | | 99 | | 100 | |
134 | #errors 135 | #document 136 | | 137 | | 138 | | 139 | | 140 | |
a 144 | #errors 145 | #document 146 | | 147 | | 148 | | 149 | | 150 | | 151 | | 152 | | 153 | | "a" 154 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/const.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package html 6 | 7 | // Section 12.2.3.2 of the HTML5 specification says "The following elements 8 | // have varying levels of special parsing rules". 9 | // https://html.spec.whatwg.org/multipage/syntax.html#the-stack-of-open-elements 10 | var isSpecialElementMap = map[string]bool{ 11 | "address": true, 12 | "applet": true, 13 | "area": true, 14 | "article": true, 15 | "aside": true, 16 | "base": true, 17 | "basefont": true, 18 | "bgsound": true, 19 | "blockquote": true, 20 | "body": true, 21 | "br": true, 22 | "button": true, 23 | "caption": true, 24 | "center": true, 25 | "col": true, 26 | "colgroup": true, 27 | "dd": true, 28 | "details": true, 29 | "dir": true, 30 | "div": true, 31 | "dl": true, 32 | "dt": true, 33 | "embed": true, 34 | "fieldset": true, 35 | "figcaption": true, 36 | "figure": true, 37 | "footer": true, 38 | "form": true, 39 | "frame": true, 40 | "frameset": true, 41 | "h1": true, 42 | "h2": true, 43 | "h3": true, 44 | "h4": true, 45 | "h5": true, 46 | "h6": true, 47 | "head": true, 48 | "header": true, 49 | "hgroup": true, 50 | "hr": true, 51 | "html": true, 52 | "iframe": true, 53 | "img": true, 54 | "input": true, 55 | "isindex": true, 56 | "li": true, 57 | "link": true, 58 | "listing": true, 59 | "marquee": true, 60 | "menu": true, 61 | "meta": true, 62 | "nav": true, 63 | "noembed": true, 64 | "noframes": true, 65 | "noscript": true, 66 | "object": true, 67 | "ol": true, 68 | "p": true, 69 | "param": true, 70 | "plaintext": true, 71 | "pre": true, 72 | "script": true, 73 | "section": true, 74 | "select": true, 75 | "source": true, 76 | "style": true, 77 | "summary": true, 78 | "table": true, 79 | "tbody": true, 80 | "td": true, 81 | "template": true, 82 | "textarea": true, 83 | "tfoot": true, 84 | "th": true, 85 | "thead": true, 86 | "title": true, 87 | "tr": true, 88 | "track": true, 89 | "ul": true, 90 | "wbr": true, 91 | "xmp": true, 92 | } 93 | 94 | func isSpecialElement(element *Node) bool { 95 | switch element.Namespace { 96 | case "", "html": 97 | return isSpecialElementMap[element.Data] 98 | case "svg": 99 | return element.Data == "foreignObject" 100 | } 101 | return false 102 | } 103 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/meta-charset-attribute.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | meta charset attribute 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 |

meta charset attribute

18 | 19 | 20 |
21 | 22 | 23 |
 
24 | 25 | 26 | 27 | 28 | 29 |
30 |

The character encoding of the page can be set by a meta element with charset attribute.

31 |

The only character encoding declaration for this HTML file is in the charset attribute of the meta element, which declares the encoding to be ISO 8859-15.

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ÜÀÚ. This matches the sequence of bytes above when they are interpreted as ISO 8859-15. If the class name matches the selector then the test will pass.

32 |
33 |
34 |
HTML5
35 |

the-input-byte-stream-009
Result summary & related tests
Detailed results for this test
Link to spec

36 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 37 |
  • The test is read from a server that supports HTTP.
38 |
39 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/meta-content-attribute.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | meta content attribute 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 |

meta content attribute

18 | 19 | 20 |
21 | 22 | 23 |
 
24 | 25 | 26 | 27 | 28 | 29 |
30 |

The character encoding of the page can be set by a meta element with http-equiv and content attributes.

31 |

The only character encoding declaration for this HTML file is in the content attribute of the meta element, which declares the encoding to be ISO 8859-15.

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ÜÀÚ. This matches the sequence of bytes above when they are interpreted as ISO 8859-15. If the class name matches the selector then the test will pass.

32 |
33 |
34 |
HTML5
35 |

the-input-byte-stream-007
Result summary & related tests
Detailed results for this test
Link to spec

36 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 37 |
  • The test is read from a server that supports HTTP.
38 |
39 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/HTTP-vs-meta-charset.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HTTP vs meta charset 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 |

HTTP vs meta charset

19 | 20 | 21 |
22 | 23 | 24 |
 
25 | 26 | 27 | 28 | 29 | 30 |
31 |

The HTTP header has a higher precedence than an encoding declaration in a meta charset attribute.

32 |

The HTTP header attempts to set the character encoding to ISO 8859-15. The page contains an encoding declaration in a meta charset attribute that attempts to set the character encoding to ISO 8859-1.

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ÜÀÚ. This matches the sequence of bytes above when they are interpreted as ISO 8859-15. If the class name matches the selector then the test will pass.

33 |
34 |
35 |
HTML5
36 |

the-input-byte-stream-018
Result summary & related tests
Detailed results for this test
Link to spec

37 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 38 |
  • The test is read from a server that supports HTTP.
39 |
40 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-8-BOM-vs-meta-charset.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UTF-8 BOM vs meta charset 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 |

UTF-8 BOM vs meta charset

19 | 20 | 21 |
22 | 23 | 24 |
 
25 | 26 | 27 | 28 | 29 | 30 |
31 |

A page with a UTF-8 BOM will be recognized as UTF-8 even if the meta charset attribute declares a different encoding.

32 |

The page contains an encoding declaration in a meta charset attribute that attempts to set the character encoding to ISO 8859-15, but the file starts with a UTF-8 signature.

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ýäè. This matches the sequence of bytes above when they are interpreted as UTF-8. If the class name matches the selector then the test will pass.

33 |
34 |
35 |
HTML5
36 |

the-input-byte-stream-038
Result summary & related tests
Detailed results for this test
Link to spec

37 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 38 |
  • The test is read from a server that supports HTTP.
39 |
40 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-8-BOM-vs-meta-content.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | UTF-8 BOM vs meta content 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 |

UTF-8 BOM vs meta content

18 | 19 | 20 |
21 | 22 | 23 |
 
24 | 25 | 26 | 27 | 28 | 29 |
30 |

A page with a UTF-8 BOM will be recognized as UTF-8 even if the meta content attribute declares a different encoding.

31 |

The page contains an encoding declaration in a meta content attribute that attempts to set the character encoding to ISO 8859-15, but the file starts with a UTF-8 signature.

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ýäè. This matches the sequence of bytes above when they are interpreted as UTF-8. If the class name matches the selector then the test will pass.

32 |
33 |
34 |
HTML5
35 |

the-input-byte-stream-037
Result summary & related tests
Detailed results for this test
Link to spec

36 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 37 |
  • The test is read from a server that supports HTTP.
38 |
39 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/HTTP-vs-UTF-8-BOM.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HTTP vs UTF-8 BOM 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 |

HTTP vs UTF-8 BOM

18 | 19 | 20 |
21 | 22 | 23 |
 
24 | 25 | 26 | 27 | 28 | 29 |
30 |

A character encoding set in the HTTP header has lower precedence than the UTF-8 signature.

31 |

The HTTP header attempts to set the character encoding to ISO 8859-15. The page starts with a UTF-8 signature.

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ýäè. This matches the sequence of bytes above when they are interpreted as UTF-8. If the class name matches the selector then the test will pass.

If the test is unsuccessful, the characters  should appear at the top of the page. These represent the bytes that make up the UTF-8 signature when encountered in the ISO 8859-15 encoding.

32 |
33 |
34 |
HTML5
35 |

the-input-byte-stream-034
Result summary & related tests
Detailed results for this test
Link to spec

36 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 37 |
  • The test is read from a server that supports HTTP.
38 |
39 | 44 | 45 | 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/HTTP-vs-meta-content.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | HTTP vs meta content 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 |

HTTP vs meta content

19 | 20 | 21 |
22 | 23 | 24 |
 
25 | 26 | 27 | 28 | 29 | 30 |
31 |

The HTTP header has a higher precedence than an encoding declaration in a meta content attribute.

32 |

The HTTP header attempts to set the character encoding to ISO 8859-15. The page contains an encoding declaration in a meta content attribute that attempts to set the character encoding to ISO 8859-1.

The test contains a div with a class name that contains the following sequence of bytes: 0xC3 0xBD 0xC3 0xA4 0xC3 0xA8. These represent different sequences of characters in ISO 8859-15, ISO 8859-1 and UTF-8. The external, UTF-8-encoded stylesheet contains a selector .test div.ÜÀÚ. This matches the sequence of bytes above when they are interpreted as ISO 8859-15. If the class name matches the selector then the test will pass.

33 |
34 |
35 |
HTML5
36 |

the-input-byte-stream-016
Result summary & related tests
Detailed results for this test
Link to spec

37 |
Assumptions:
  • The default encoding for the browser you are testing is not set to ISO 8859-15.
  • 38 |
  • The test is read from a server that supports HTTP.
39 |
40 | 45 | 46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/webkit02.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | | bar="qux/" 10 | 11 | #data 12 |

B

13 | #errors 14 | #document 15 | | 16 | | 17 | | 18 | |

19 | | id="status" 20 | |

27 | #errors 28 | #document 29 | | 30 | | 31 | | 32 | |
33 | | 34 | |
35 | 36 | #data 37 | ><div>A</div></body></html>
 38 | #errors
 39 | #document
 40 | | <html>
 41 | |   <head>
 42 | |   <body>
 43 | 
 44 | #data
 45 | <table><td></tbody>A
 46 | #errors
 47 | #document
 48 | | <html>
 49 | |   <head>
 50 | |   <body>
 51 | |     53 | |
54 | | 55 | |
56 | 57 | #data 58 |
A 59 | #errors 60 | #document 61 | | 62 | | 63 | | 64 | | 65 | | 66 | | 67 | |
68 | | "A" 69 | 70 | #data 71 |
A 72 | #errors 73 | #document 74 | | 75 | | 76 | | 77 | | 78 | | 79 | | 80 | |
81 | | "A" 82 | 83 | #data 84 |
A 85 | #errors 86 | #document 87 | | 88 | | 89 | | 90 | | 91 | | 92 | | 93 | |
94 | | "A" 95 | 96 | #data 97 | test 98 | #errors 99 | #document 100 | | 101 | | 102 | | 103 | | 104 | | "test" 105 | 106 | #data 107 | 108 | #errors 109 | #document 110 | | 111 | | 112 | | 113 | | 114 | |
115 | 116 | #data 117 |
1

23

74 | #errors 75 | #document 76 | | 77 | | 78 | | 79 | | 80 | | "1" 81 | |

82 | | 83 | | "2" 84 | | "3" 85 | |

86 | 87 | #data 88 |

89 | #errors 90 | #document 91 | | 92 | | 93 | | 94 | | 95 | | 96 | | 97 | |

98 | | 99 | 100 | #data 101 |

102 | #errors 103 | #document 104 | | 105 | | 106 | | 107 | | 108 | | 109 | | 110 | | 111 | |

112 | | 113 | 114 | #data 115 |

116 | #errors 117 | #document 118 | | 119 | | 120 | | 121 | | 122 | | 123 | | 124 | | 125 | | 126 | |

127 | | 128 | 129 | #data 130 |

123

45 131 | #errors 132 | #document 133 | | 134 | | 135 | | 136 | |

137 | | "1" 138 | | 139 | | id="A" 140 | | "2" 141 | | 142 | | id="B" 143 | | "3" 144 | | 145 | | id="A" 146 | | 147 | | id="B" 148 | | "4" 149 | | 150 | | id="B" 151 | | "5" 152 | 153 | #data 154 |

13
2
155 | #errors 156 | #document 157 | | 158 | | 159 | | 160 | | 161 | | "1" 162 | | 163 | | "3" 164 | | 165 | | 166 | | 167 | |
168 | | "2" 169 | 170 | #data 171 | AC
B
172 | #errors 173 | #document 174 | | 175 | | 176 | | 177 | | "AC" 178 | | 179 | | 180 | | 181 | | A 69 | #errors 70 | 26: Stray start tag “col”. 71 | #document 72 | | 73 | | 74 | | 75 | | 76 | | "A" 77 | 78 | #data 79 | A 80 | #errors 81 | #document 82 | | 83 | | 84 | | 85 | | 86 | | 87 | | "A" 88 | 89 | #data 90 | A 91 | #errors 92 | #document 93 | | 94 | | 95 | | 96 | | 97 | | 98 | | "A" 99 | 100 | #data 101 | A 102 | #errors 103 | 26: Stray start tag “frame”. 104 | #document 105 | | 106 | | 107 | | 108 | | 109 | | "A" 110 | 111 | #data 112 |
A 113 | #errors 114 | #document 115 | | 116 | | 117 | | 118 | | 119 | |
120 | | "A" 121 | 122 | #data 123 | A 124 | #errors 125 | #document 126 | | 127 | | 128 | | 129 | | 130 | | 131 | | "A" 132 | 133 | #data 134 | A 135 | #errors 136 | #document 137 | | 138 | | 139 | | 140 | | 141 | | 142 | | "A" 143 | 144 | #data 145 | A 146 | #errors 147 | #document 148 | | 149 | | 150 | | 151 | | 152 | | 153 | | "A" 154 | 155 | #data 156 | A 157 | #errors 158 | #document 159 | | 160 | | 161 | | 162 | | 163 | | 164 | | "A" 165 | 166 | #data 167 | A 168 | #errors 169 | #document 170 | | 171 | | 172 | | 173 | | 174 | | 175 | | "A" 176 | 177 | #data 178 | A 179 | #errors 180 | #document 181 | | 182 | | 183 | | 184 | | 185 | | 186 | | "A" 187 | 188 | #data 189 | A 190 | #errors 191 | #document 192 | | 193 | | 194 | | 195 | | 196 | | 197 | | "A" 198 | 199 | #data 200 | A 201 | #errors 202 | #document 203 | | 204 | | 205 | | 206 | | 207 | | 208 | | "A" 209 | 210 | #data 211 | A 212 | #errors 213 | #document 214 | | 215 | | 216 | | 217 | | 218 | | 219 | | "A" 220 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/tests23.dat: -------------------------------------------------------------------------------- 1 | #data 2 |

X 3 | #errors 4 | 3: Start tag seen without seeing a doctype first. Expected “”. 5 | 116: Unclosed elements. 6 | 117: End of file seen and there were open elements. 7 | #document 8 | | 9 | | 10 | | 11 | |

12 | | 13 | | size="4" 14 | | 15 | | color="red" 16 | | 17 | | size="4" 18 | | 19 | | size="4" 20 | | 21 | | size="4" 22 | | 23 | | size="4" 24 | | 25 | | size="4" 26 | | 27 | | color="red" 28 | |

29 | | 30 | | color="red" 31 | | 32 | | size="4" 33 | | 34 | | size="4" 35 | | 36 | | size="4" 37 | | 38 | | color="red" 39 | | "X" 40 | 41 | #data 42 |

X 43 | #errors 44 | #document 45 | | 46 | | 47 | | 48 | |

49 | | 50 | | size="4" 51 | | 52 | | size="4" 53 | | 54 | | size="4" 55 | | 56 | | size="4" 57 | |

58 | | 59 | | size="4" 60 | | 61 | | size="4" 62 | | 63 | | size="4" 64 | | "X" 65 | 66 | #data 67 |

X 68 | #errors 69 | #document 70 | | 71 | | 72 | | 73 | |

74 | | 75 | | size="4" 76 | | 77 | | size="4" 78 | | 79 | | size="4" 80 | | 81 | | size="5" 82 | | 83 | | size="4" 84 | |

85 | | 86 | | size="4" 87 | | 88 | | size="4" 89 | | 90 | | size="5" 91 | | 92 | | size="4" 93 | | "X" 94 | 95 | #data 96 |

X 97 | #errors 98 | #document 99 | | 100 | | 101 | | 102 | |

103 | | 104 | | id="a" 105 | | size="4" 106 | | 107 | | id="b" 108 | | size="4" 109 | | 110 | | size="4" 111 | | 112 | | size="4" 113 | |

114 | | 115 | | id="a" 116 | | size="4" 117 | | 118 | | id="b" 119 | | size="4" 120 | | 121 | | size="4" 122 | | 123 | | size="4" 124 | | "X" 125 | 126 | #data 127 |

X

Y 128 | #errors 129 | #document 130 | | 131 | | 132 | | 133 | |

134 | | 135 | | id="a" 136 | | 137 | | id="a" 138 | | 139 | | id="a" 140 | | 141 | | 142 | | 143 | | id="a" 144 | | 145 | | id="a" 146 | | "X" 147 | |

148 | | 149 | | id="a" 150 | | 151 | | id="a" 152 | | 153 | | id="a" 154 | | 155 | | "Y" 156 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | /* 6 | Package html implements an HTML5-compliant tokenizer and parser. 7 | 8 | Tokenization is done by creating a Tokenizer for an io.Reader r. It is the 9 | caller's responsibility to ensure that r provides UTF-8 encoded HTML. 10 | 11 | z := html.NewTokenizer(r) 12 | 13 | Given a Tokenizer z, the HTML is tokenized by repeatedly calling z.Next(), 14 | which parses the next token and returns its type, or an error: 15 | 16 | for { 17 | tt := z.Next() 18 | if tt == html.ErrorToken { 19 | // ... 20 | return ... 21 | } 22 | // Process the current token. 23 | } 24 | 25 | There are two APIs for retrieving the current token. The high-level API is to 26 | call Token; the low-level API is to call Text or TagName / TagAttr. Both APIs 27 | allow optionally calling Raw after Next but before Token, Text, TagName, or 28 | TagAttr. In EBNF notation, the valid call sequence per token is: 29 | 30 | Next {Raw} [ Token | Text | TagName {TagAttr} ] 31 | 32 | Token returns an independent data structure that completely describes a token. 33 | Entities (such as "<") are unescaped, tag names and attribute keys are 34 | lower-cased, and attributes are collected into a []Attribute. For example: 35 | 36 | for { 37 | if z.Next() == html.ErrorToken { 38 | // Returning io.EOF indicates success. 39 | return z.Err() 40 | } 41 | emitToken(z.Token()) 42 | } 43 | 44 | The low-level API performs fewer allocations and copies, but the contents of 45 | the []byte values returned by Text, TagName and TagAttr may change on the next 46 | call to Next. For example, to extract an HTML page's anchor text: 47 | 48 | depth := 0 49 | for { 50 | tt := z.Next() 51 | switch tt { 52 | case ErrorToken: 53 | return z.Err() 54 | case TextToken: 55 | if depth > 0 { 56 | // emitBytes should copy the []byte it receives, 57 | // if it doesn't process it immediately. 58 | emitBytes(z.Text()) 59 | } 60 | case StartTagToken, EndTagToken: 61 | tn, _ := z.TagName() 62 | if len(tn) == 1 && tn[0] == 'a' { 63 | if tt == StartTagToken { 64 | depth++ 65 | } else { 66 | depth-- 67 | } 68 | } 69 | } 70 | } 71 | 72 | Parsing is done by calling Parse with an io.Reader, which returns the root of 73 | the parse tree (the document element) as a *Node. It is the caller's 74 | responsibility to ensure that the Reader provides UTF-8 encoded HTML. For 75 | example, to process each anchor node in depth-first order: 76 | 77 | doc, err := html.Parse(r) 78 | if err != nil { 79 | // ... 80 | } 81 | var f func(*html.Node) 82 | f = func(n *html.Node) { 83 | if n.Type == html.ElementNode && n.Data == "a" { 84 | // Do something with n... 85 | } 86 | for c := n.FirstChild; c != nil; c = c.NextSibling { 87 | f(c) 88 | } 89 | } 90 | f(doc) 91 | 92 | The relevant specifications include: 93 | https://html.spec.whatwg.org/multipage/syntax.html and 94 | https://html.spec.whatwg.org/multipage/syntax.html#tokenization 95 | */ 96 | package html // import "golang.org/x/net/html" 97 | 98 | // The tokenization algorithm implemented by this package is not a line-by-line 99 | // transliteration of the relatively verbose state-machine in the WHATWG 100 | // specification. A more direct approach is used instead, where the program 101 | // counter implies the state, such as whether it is tokenizing a tag or a text 102 | // node. Specification compliance is verified by checking expected and actual 103 | // outputs over a test suite rather than aiming for algorithmic fidelity. 104 | 105 | // TODO(nigeltao): Does a DOM API belong in this package or a separate one? 106 | // TODO(nigeltao): How does parsing interact with a JavaScript engine? 107 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/tables01.dat: -------------------------------------------------------------------------------- 1 | #data 2 |

182 | | "B" 183 | 184 | #data 185 |
186 | #errors 187 | #document 188 | | 189 | | 190 | | 191 | | 192 | | 193 | | 194 | | 195 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/render_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package html 6 | 7 | import ( 8 | "bytes" 9 | "testing" 10 | ) 11 | 12 | func TestRenderer(t *testing.T) { 13 | nodes := [...]*Node{ 14 | 0: { 15 | Type: ElementNode, 16 | Data: "html", 17 | }, 18 | 1: { 19 | Type: ElementNode, 20 | Data: "head", 21 | }, 22 | 2: { 23 | Type: ElementNode, 24 | Data: "body", 25 | }, 26 | 3: { 27 | Type: TextNode, 28 | Data: "0<1", 29 | }, 30 | 4: { 31 | Type: ElementNode, 32 | Data: "p", 33 | Attr: []Attribute{ 34 | { 35 | Key: "id", 36 | Val: "A", 37 | }, 38 | { 39 | Key: "foo", 40 | Val: `abc"def`, 41 | }, 42 | }, 43 | }, 44 | 5: { 45 | Type: TextNode, 46 | Data: "2", 47 | }, 48 | 6: { 49 | Type: ElementNode, 50 | Data: "b", 51 | Attr: []Attribute{ 52 | { 53 | Key: "empty", 54 | Val: "", 55 | }, 56 | }, 57 | }, 58 | 7: { 59 | Type: TextNode, 60 | Data: "3", 61 | }, 62 | 8: { 63 | Type: ElementNode, 64 | Data: "i", 65 | Attr: []Attribute{ 66 | { 67 | Key: "backslash", 68 | Val: `\`, 69 | }, 70 | }, 71 | }, 72 | 9: { 73 | Type: TextNode, 74 | Data: "&4", 75 | }, 76 | 10: { 77 | Type: TextNode, 78 | Data: "5", 79 | }, 80 | 11: { 81 | Type: ElementNode, 82 | Data: "blockquote", 83 | }, 84 | 12: { 85 | Type: ElementNode, 86 | Data: "br", 87 | }, 88 | 13: { 89 | Type: TextNode, 90 | Data: "6", 91 | }, 92 | } 93 | 94 | // Build a tree out of those nodes, based on a textual representation. 95 | // Only the ".\t"s are significant. The trailing HTML-like text is 96 | // just commentary. The "0:" prefixes are for easy cross-reference with 97 | // the nodes array. 98 | treeAsText := [...]string{ 99 | 0: ``, 100 | 1: `. `, 101 | 2: `. `, 102 | 3: `. . "0<1"`, 103 | 4: `. .

`, 104 | 5: `. . . "2"`, 105 | 6: `. . . `, 106 | 7: `. . . . "3"`, 107 | 8: `. . . `, 108 | 9: `. . . . "&4"`, 109 | 10: `. . "5"`, 110 | 11: `. .

`, 111 | 12: `. .
`, 112 | 13: `. . "6"`, 113 | } 114 | if len(nodes) != len(treeAsText) { 115 | t.Fatal("len(nodes) != len(treeAsText)") 116 | } 117 | var stack [8]*Node 118 | for i, line := range treeAsText { 119 | level := 0 120 | for line[0] == '.' { 121 | // Strip a leading ".\t". 122 | line = line[2:] 123 | level++ 124 | } 125 | n := nodes[i] 126 | if level == 0 { 127 | if stack[0] != nil { 128 | t.Fatal("multiple root nodes") 129 | } 130 | stack[0] = n 131 | } else { 132 | stack[level-1].AppendChild(n) 133 | stack[level] = n 134 | for i := level + 1; i < len(stack); i++ { 135 | stack[i] = nil 136 | } 137 | } 138 | // At each stage of tree construction, we check all nodes for consistency. 139 | for j, m := range nodes { 140 | if err := checkNodeConsistency(m); err != nil { 141 | t.Fatalf("i=%d, j=%d: %v", i, j, err) 142 | } 143 | } 144 | } 145 | 146 | want := `0<1

` + 147 | `23&4

` + 148 | `5

6` 149 | b := new(bytes.Buffer) 150 | if err := Render(b, nodes[0]); err != nil { 151 | t.Fatal(err) 152 | } 153 | if got := b.String(); got != want { 154 | t.Errorf("got vs want:\n%s\n%s\n", got, want) 155 | } 156 | } 157 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/tests21.dat: -------------------------------------------------------------------------------- 1 | #data 2 | foo 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | | "foo" 10 | 11 | #data 12 | foo 13 | #errors 14 | #document 15 | | 16 | | 17 | | 18 | | 19 | | "foo" 20 | 21 | #data 22 |
23 | #errors 24 | #document 25 | | 26 | | 27 | | 28 | |
29 | | 30 | 31 | #data 32 | foo 33 | #errors 34 | #document 35 | | <html> 36 | | <head> 37 | | <body> 38 | | <svg svg> 39 | | "foo" 40 | 41 | #data 42 | <svg><![CDATA[foo 43 | #errors 44 | #document 45 | | <html> 46 | | <head> 47 | | <body> 48 | | <svg svg> 49 | | "foo" 50 | 51 | #data 52 | <svg><![CDATA[ 53 | #errors 54 | #document 55 | | <html> 56 | | <head> 57 | | <body> 58 | | <svg svg> 59 | 60 | #data 61 | <svg><![CDATA[ 62 | #errors 63 | #document 64 | | 65 | | 66 | | 67 | | 68 | 69 | #data 70 | ]] > 71 | #errors 72 | #document 73 | | 74 | | 75 | | 76 | | 77 | | "]] >" 78 | 79 | #data 80 | ]] > 81 | #errors 82 | #document 83 | | 84 | | 85 | | 86 | | 87 | | "]] >" 88 | 89 | #data 90 | ]] 91 | #errors 92 | #document 93 | | <html> 94 | | <head> 95 | | <body> 96 | | <svg svg> 97 | | "]]" 98 | 99 | #data 100 | <svg><![CDATA[] 101 | #errors 102 | #document 103 | | <html> 104 | | <head> 105 | | <body> 106 | | <svg svg> 107 | | "]" 108 | 109 | #data 110 | <svg><![CDATA[]>a 111 | #errors 112 | #document 113 | | <html> 114 | | <head> 115 | | <body> 116 | | <svg svg> 117 | | "]>a" 118 | 119 | #data 120 | <svg><foreignObject><div><![CDATA[foo 121 | #errors 122 | #document 123 | | 124 | | 125 | | 126 | | 127 | | 128 | |
129 | | 130 | 131 | #data 132 | <svg> 133 | #errors 134 | #document 135 | | 136 | | 137 | | 138 | | 139 | | "" 140 | 141 | #data 142 | </svg>a 143 | #errors 144 | #document 145 | | 146 | | 147 | | 148 | | 149 | | "a" 150 | 151 | #data 152 | <svg>a 153 | #errors 154 | #document 155 | | <html> 156 | | <head> 157 | | <body> 158 | | <svg svg> 159 | | "<svg>a" 160 | 161 | #data 162 | <svg><![CDATA[</svg>a 163 | #errors 164 | #document 165 | | <html> 166 | | <head> 167 | | <body> 168 | | <svg svg> 169 | | "</svg>a" 170 | 171 | #data 172 | <svg><![CDATA[<svg> 173 | #errors 174 | #document 175 | | 176 | | 177 | | 178 | | 179 | | "" 180 | | 181 | 182 | #data 183 | <svg> 184 | #errors 185 | #document 186 | | 187 | | 188 | | 189 | | 190 | | "" 191 | 192 | #data 193 | <svg> 194 | #errors 195 | #document 196 | | 197 | | 198 | | 199 | | 200 | | "" 201 | | 202 | 203 | #data 204 | <svg>path 205 | #errors 206 | #document 207 | | 208 | | 209 | | 210 | | 211 | | "path" 212 | 213 | #data 214 | <!--svg--> 215 | #errors 216 | #document 217 | | 218 | | 219 | | 220 | | 221 | | "" 222 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/tests25.dat: -------------------------------------------------------------------------------- 1 | #data 2 | A 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | | 10 | | "A" 11 | 12 | #data 13 | A 14 | #errors 15 | #document 16 | | 17 | | 18 | | 19 | | 20 | | 21 | | "A" 22 | 23 | #data 24 | A 25 | #errors 26 | #document 27 | | 28 | | 29 | | 30 | | 31 | | 32 | | "A" 33 | 34 | #data 35 | A 36 | #errors 37 | #document 38 | | 39 | | 40 | | 41 | | 42 | | 43 | | "A" 44 | 45 | #data 46 | A 47 | #errors 48 | #document 49 | | 50 | | 51 | | 52 | | 53 | | 54 | | "A" 55 | 56 | #data 57 |
A 58 | #errors 59 | #document 60 | | 61 | | 62 | | 63 | | 64 | |
65 | | "A" 66 | 67 | #data 68 |
3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | | 10 | | 11 | |
12 | 13 | #data 14 |
15 | #errors 16 | #document 17 | | 18 | | 19 | | 20 | | 21 | | 22 | | 23 | |
24 | 25 | #data 26 | 27 | #errors 28 | #document 29 | | 30 | | 31 | | 32 | |
33 | | 34 | | 35 | | foo="bar" 36 | 37 | #data 38 |
foo 39 | #errors 40 | #document 41 | | 42 | | 43 | | 44 | | "foo" 45 | |
46 | | 47 | 48 | #data 49 |

foo 50 | #errors 51 | #document 52 | | 53 | | 54 | | 55 | | 56 | |

57 | | "foo" 58 | 59 | #data 60 |

61 | #errors 62 | #document 63 | | 64 | | 65 | | 66 | | 67 | | 68 | | 69 | |
70 | 71 | #data 72 |
73 | #errors 74 | #document 75 | | 76 | | 77 | | 78 | | 82 | 83 | #data 84 |
85 | #errors 86 | #document 87 | | 88 | | 89 | | 90 | | 92 | |
93 | 94 | #data 95 |
96 | #errors 97 | #document 98 | | 99 | | 100 | | 101 | | 103 | 104 | #data 105 |
B
106 | #errors 107 | #document 108 | | 109 | | 110 | | 111 | | 115 | | 116 | | 117 | |
118 | | "B" 119 | 120 | #data 121 |
foo 122 | #errors 123 | #document 124 | | 125 | | 126 | | 127 | | 128 | | 129 | | 130 | |
131 | | "foo" 132 | 133 | #data 134 |
A
B 135 | #errors 136 | #document 137 | | 138 | | 139 | | 140 | | 141 | | 142 | | 143 | |
144 | | "A" 145 | | "B" 146 | 147 | #data 148 |
149 | #errors 150 | #document 151 | | 152 | | 153 | | 154 | | 155 | | 156 | | 157 | |
158 | 159 | #data 160 |
foo 161 | #errors 162 | #document 163 | | 164 | | 165 | | 166 | | 167 | | 168 | | 169 | |
170 | | "foo" 171 | 172 | #data 173 | 174 | #errors 175 | #document 176 | | 177 | | 178 | | 179 | |
180 | | 181 | | 182 | | 184 | 185 | #data 186 |
183 | |
187 | #errors 188 | #document 189 | | 190 | | 191 | | 192 | | 193 | | 194 | | 195 | |
196 | | 198 | 199 | #data 200 |
201 | #errors 202 | #document 203 | | 204 | | 205 | | 206 | | 207 | | 208 | | 209 | |
210 | | 211 | | 212 | | 213 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/html5test-com.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | 10 | #data 11 |
12 | #errors 13 | #document 14 | | 15 | | 16 | | 17 | |
18 | | foo 22 | #errors 23 | #document 24 | | 25 | | 26 | | 27 | |
28 | | foo="`bar`" 29 | 30 | #data 31 |
32 | #errors 33 | #document 34 | | 35 | | 36 | | 37 | |
38 | | \"foo="" 39 | 40 | #data 41 | 42 | #errors 43 | #document 44 | | 45 | | 46 | | 47 | | 48 | | href="\nbar" 49 | 50 | #data 51 | 52 | #errors 53 | #document 54 | | 55 | | 56 | | 57 | | 58 | 59 | #data 60 | ⟨⟩ 61 | #errors 62 | #document 63 | | 64 | | 65 | | 66 | | "⟨⟩" 67 | 68 | #data 69 | ' 70 | #errors 71 | #document 72 | | 73 | | 74 | | 75 | | "'" 76 | 77 | #data 78 | ⅈ 79 | #errors 80 | #document 81 | | 82 | | 83 | | 84 | | "ⅈ" 85 | 86 | #data 87 | 𝕂 88 | #errors 89 | #document 90 | | 91 | | 92 | | 93 | | "𝕂" 94 | 95 | #data 96 | ∉ 97 | #errors 98 | #document 99 | | 100 | | 101 | | 102 | | "∉" 103 | 104 | #data 105 | 106 | #errors 107 | #document 108 | | 109 | | 110 | | 111 | | 112 | 113 | #data 114 | 115 | #errors 116 | #document 117 | | 118 | | 119 | | 120 | | 121 | 122 | #data 123 | 124 | #errors 125 | #document 126 | | 127 | | 128 | | 129 | | 130 | 131 | #data 132 | --> 133 | #errors 134 | #document 135 | | 136 | | 137 | | 138 | | --> 144 | #errors 145 | #document 146 | | 147 | | 148 | | 149 | | ->x --> x 103 | #errors 104 | Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE. 105 | #document 106 | | 107 | | 108 | | 109 | | 206 | #errors 207 | #document 208 | | 209 | | 210 | | 211 | | 212 | | 217 | #errors 218 | #document 219 | | 220 | | 221 | | 222 | | 223 | | 230 | #errors 231 | #document 232 | | 233 | | 234 | | 235 | | 236 | |