golang.org/x/net@v0.25.1-0.20240516223405-c87a5b62e243/html/testdata/webkit/doctype01.dat (about) 1 #data 2 <!DOCTYPE html>Hello 3 #errors 4 #document 5 | <!DOCTYPE html> 6 | <html> 7 | <head> 8 | <body> 9 | "Hello" 10 11 #data 12 <!dOctYpE HtMl>Hello 13 #errors 14 #document 15 | <!DOCTYPE html> 16 | <html> 17 | <head> 18 | <body> 19 | "Hello" 20 21 #data 22 <!DOCTYPEhtml>Hello 23 #errors 24 (1,9): need-space-after-doctype 25 #new-errors 26 (1:10) missing-whitespace-before-doctype-name 27 #document 28 | <!DOCTYPE html> 29 | <html> 30 | <head> 31 | <body> 32 | "Hello" 33 34 #data 35 <!DOCTYPE>Hello 36 #errors 37 (1,9): need-space-after-doctype 38 (1,10): expected-doctype-name-but-got-right-bracket 39 (1,10): unknown-doctype 40 #new-errors 41 (1:10) missing-doctype-name 42 #document 43 | <!DOCTYPE > 44 | <html> 45 | <head> 46 | <body> 47 | "Hello" 48 49 #data 50 <!DOCTYPE >Hello 51 #errors 52 (1,11): expected-doctype-name-but-got-right-bracket 53 (1,11): unknown-doctype 54 #new-errors 55 (1:11) missing-doctype-name 56 #document 57 | <!DOCTYPE > 58 | <html> 59 | <head> 60 | <body> 61 | "Hello" 62 63 #data 64 <!DOCTYPE potato>Hello 65 #errors 66 (1,17): unknown-doctype 67 #document 68 | <!DOCTYPE potato> 69 | <html> 70 | <head> 71 | <body> 72 | "Hello" 73 74 #data 75 <!DOCTYPE potato >Hello 76 #errors 77 (1,18): unknown-doctype 78 #document 79 | <!DOCTYPE potato> 80 | <html> 81 | <head> 82 | <body> 83 | "Hello" 84 85 #data 86 <!DOCTYPE potato taco>Hello 87 #errors 88 (1,17): expected-space-or-right-bracket-in-doctype 89 (1,22): unknown-doctype 90 #new-errors 91 (1:18) invalid-character-sequence-after-doctype-name 92 #document 93 | <!DOCTYPE potato> 94 | <html> 95 | <head> 96 | <body> 97 | "Hello" 98 99 #data 100 <!DOCTYPE potato taco "ddd>Hello 101 #errors 102 (1,17): expected-space-or-right-bracket-in-doctype 103 (1,27): unknown-doctype 104 #new-errors 105 (1:18) invalid-character-sequence-after-doctype-name 106 #document 107 | <!DOCTYPE potato> 108 | <html> 109 | <head> 110 | <body> 111 | "Hello" 112 113 #data 114 <!DOCTYPE potato sYstEM>Hello 115 #errors 116 (1,24): unexpected-char-in-doctype 117 (1,24): unknown-doctype 118 #new-errors 119 (1:24) missing-doctype-system-identifier 120 #document 121 | <!DOCTYPE potato> 122 | <html> 123 | <head> 124 | <body> 125 | "Hello" 126 127 #data 128 <!DOCTYPE potato sYstEM >Hello 129 #errors 130 (1,28): unexpected-char-in-doctype 131 (1,28): unknown-doctype 132 #new-errors 133 (1:28) missing-doctype-system-identifier 134 #document 135 | <!DOCTYPE potato> 136 | <html> 137 | <head> 138 | <body> 139 | "Hello" 140 141 #data 142 <!DOCTYPE potato sYstEM ggg>Hello 143 #errors 144 (1,34): unexpected-char-in-doctype 145 (1,37): unknown-doctype 146 #new-errors 147 (1:34) missing-quote-before-doctype-system-identifier 148 #document 149 | <!DOCTYPE potato> 150 | <html> 151 | <head> 152 | <body> 153 | "Hello" 154 155 #data 156 <!DOCTYPE potato SYSTEM taco >Hello 157 #errors 158 (1,25): unexpected-char-in-doctype 159 (1,31): unknown-doctype 160 #new-errors 161 (1:25) missing-quote-before-doctype-system-identifier 162 #document 163 | <!DOCTYPE potato> 164 | <html> 165 | <head> 166 | <body> 167 | "Hello" 168 169 #data 170 <!DOCTYPE potato SYSTEM 'taco"'>Hello 171 #errors 172 (1,32): unknown-doctype 173 #document 174 | <!DOCTYPE potato "" "taco""> 175 | <html> 176 | <head> 177 | <body> 178 | "Hello" 179 180 #data 181 <!DOCTYPE potato SYSTEM "taco">Hello 182 #errors 183 (1,31): unknown-doctype 184 #document 185 | <!DOCTYPE potato "" "taco"> 186 | <html> 187 | <head> 188 | <body> 189 | "Hello" 190 191 #data 192 <!DOCTYPE potato SYSTEM "tai'co">Hello 193 #errors 194 (1,33): unknown-doctype 195 #document 196 | <!DOCTYPE potato "" "tai'co"> 197 | <html> 198 | <head> 199 | <body> 200 | "Hello" 201 202 #data 203 <!DOCTYPE potato SYSTEMtaco "ddd">Hello 204 #errors 205 (1,24): unexpected-char-in-doctype 206 (1,34): unknown-doctype 207 #new-errors 208 (1:24) missing-quote-before-doctype-system-identifier 209 #document 210 | <!DOCTYPE potato> 211 | <html> 212 | <head> 213 | <body> 214 | "Hello" 215 216 #data 217 <!DOCTYPE potato grass SYSTEM taco>Hello 218 #errors 219 (1,17): expected-space-or-right-bracket-in-doctype 220 (1,35): unknown-doctype 221 #new-errors 222 (1:18) invalid-character-sequence-after-doctype-name 223 #document 224 | <!DOCTYPE potato> 225 | <html> 226 | <head> 227 | <body> 228 | "Hello" 229 230 #data 231 <!DOCTYPE potato pUbLIc>Hello 232 #errors 233 (1,24): unexpected-end-of-doctype 234 (1,24): unknown-doctype 235 #new-errors 236 (1:24) missing-doctype-public-identifier 237 #document 238 | <!DOCTYPE potato> 239 | <html> 240 | <head> 241 | <body> 242 | "Hello" 243 244 #data 245 <!DOCTYPE potato pUbLIc >Hello 246 #errors 247 (1,25): unexpected-end-of-doctype 248 (1,25): unknown-doctype 249 #new-errors 250 (1:25) missing-doctype-public-identifier 251 #document 252 | <!DOCTYPE potato> 253 | <html> 254 | <head> 255 | <body> 256 | "Hello" 257 258 #data 259 <!DOCTYPE potato pUbLIcgoof>Hello 260 #errors 261 (1,24): unexpected-char-in-doctype 262 (1,28): unknown-doctype 263 #new-errors 264 (1:24) missing-quote-before-doctype-public-identifier 265 #document 266 | <!DOCTYPE potato> 267 | <html> 268 | <head> 269 | <body> 270 | "Hello" 271 272 #data 273 <!DOCTYPE potato PUBLIC goof>Hello 274 #errors 275 (1,25): unexpected-char-in-doctype 276 (1,29): unknown-doctype 277 #new-errors 278 (1:25) missing-quote-before-doctype-public-identifier 279 #document 280 | <!DOCTYPE potato> 281 | <html> 282 | <head> 283 | <body> 284 | "Hello" 285 286 #data 287 <!DOCTYPE potato PUBLIC "go'of">Hello 288 #errors 289 (1,32): unknown-doctype 290 #document 291 | <!DOCTYPE potato "go'of" ""> 292 | <html> 293 | <head> 294 | <body> 295 | "Hello" 296 297 #data 298 <!DOCTYPE potato PUBLIC 'go'of'>Hello 299 #errors 300 (1,29): unexpected-char-in-doctype 301 (1,32): unknown-doctype 302 #new-errors 303 (1:29) missing-quote-before-doctype-system-identifier 304 #document 305 | <!DOCTYPE potato "go" ""> 306 | <html> 307 | <head> 308 | <body> 309 | "Hello" 310 311 #data 312 <!DOCTYPE potato PUBLIC 'go:hh of' >Hello 313 #errors 314 (1,38): unknown-doctype 315 #document 316 | <!DOCTYPE potato "go:hh of" ""> 317 | <html> 318 | <head> 319 | <body> 320 | "Hello" 321 322 #data 323 <!DOCTYPE potato PUBLIC "W3C-//dfdf" SYSTEM ggg>Hello 324 #errors 325 (1,38): unexpected-char-in-doctype 326 (1,48): unknown-doctype 327 #new-errors 328 (1:38) missing-quote-before-doctype-system-identifier 329 #document 330 | <!DOCTYPE potato "W3C-//dfdf" ""> 331 | <html> 332 | <head> 333 | <body> 334 | "Hello" 335 336 #data 337 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 338 "http://www.w3.org/TR/html4/strict.dtd">Hello 339 #errors 340 #document 341 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 342 | <html> 343 | <head> 344 | <body> 345 | "Hello" 346 347 #data 348 <!DOCTYPE ...>Hello 349 #errors 350 (1,14): unknown-doctype 351 #document 352 | <!DOCTYPE ...> 353 | <html> 354 | <head> 355 | <body> 356 | "Hello" 357 358 #data 359 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 360 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 361 #errors 362 (2,58): unknown-doctype 363 #document 364 | <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 365 | <html> 366 | <head> 367 | <body> 368 369 #data 370 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" 371 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 372 #errors 373 (2,54): unknown-doctype 374 #document 375 | <!DOCTYPE html "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> 376 | <html> 377 | <head> 378 | <body> 379 380 #data 381 <!DOCTYPE root-element [SYSTEM OR PUBLIC FPI] "uri" [ 382 <!-- internal declarations --> 383 ]> 384 #errors 385 (1,23): expected-space-or-right-bracket-in-doctype 386 (2,30): unknown-doctype 387 #new-errors 388 (1:24) invalid-character-sequence-after-doctype-name 389 #document 390 | <!DOCTYPE root-element> 391 | <html> 392 | <head> 393 | <body> 394 | "]>" 395 396 #data 397 <!DOCTYPE html PUBLIC 398 "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" 399 "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> 400 #errors 401 (3,53): unknown-doctype 402 #document 403 | <!DOCTYPE html "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> 404 | <html> 405 | <head> 406 | <body> 407 408 #data 409 <!DOCTYPE HTML SYSTEM "http://www.w3.org/DTD/HTML4-strict.dtd"><body><b>Mine!</b></body> 410 #errors 411 (1,63): unknown-doctype 412 #document 413 | <!DOCTYPE html "" "http://www.w3.org/DTD/HTML4-strict.dtd"> 414 | <html> 415 | <head> 416 | <body> 417 | <b> 418 | "Mine!" 419 420 #data 421 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> 422 #errors 423 (1,50): unexpected-char-in-doctype 424 #new-errors 425 (1:50) missing-whitespace-between-doctype-public-and-system-identifiers 426 #document 427 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 428 | <html> 429 | <head> 430 | <body> 431 432 #data 433 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"'http://www.w3.org/TR/html4/strict.dtd'> 434 #errors 435 (1,50): unexpected-char-in-doctype 436 #new-errors 437 (1:50) missing-whitespace-between-doctype-public-and-system-identifiers 438 #document 439 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 440 | <html> 441 | <head> 442 | <body> 443 444 #data 445 <!DOCTYPE HTML PUBLIC"-//W3C//DTD HTML 4.01//EN"'http://www.w3.org/TR/html4/strict.dtd'> 446 #errors 447 (1,21): unexpected-char-in-doctype 448 (1,49): unexpected-char-in-doctype 449 #new-errors 450 (1:22) missing-whitespace-after-doctype-public-keyword 451 (1:49) missing-whitespace-between-doctype-public-and-system-identifiers 452 #document 453 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 454 | <html> 455 | <head> 456 | <body> 457 458 #data 459 <!DOCTYPE HTML PUBLIC'-//W3C//DTD HTML 4.01//EN''http://www.w3.org/TR/html4/strict.dtd'> 460 #errors 461 (1,21): unexpected-char-in-doctype 462 (1,49): unexpected-char-in-doctype 463 #new-errors 464 (1:22) missing-whitespace-after-doctype-public-keyword 465 (1:49) missing-whitespace-between-doctype-public-and-system-identifiers 466 #document 467 | <!DOCTYPE html "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 468 | <html> 469 | <head> 470 | <body>