mirror of
https://github.com/golang/net.git
synced 2026-04-01 02:47:08 +09:00
See: https://html.spec.whatwg.org/multipage/parsing.html#parsing-elements-that-contain-only-text This follows up on golang.org/cl/205617 Change-Id: Id99054bc25e9ea90bb3f03b15c14c13573520997 Reviewed-on: https://go-review.googlesource.com/c/net/+/210318 Run-TryBot: Kunpei Sakai <namusyaka@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
211 lines
3.1 KiB
Plaintext
211 lines
3.1 KiB
Plaintext
#data
|
|
<style> <!-- </style>x
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!-- "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<style> <!-- </style> --> </style>x
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
(1,34): unexpected-end-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!-- "
|
|
| " "
|
|
| <body>
|
|
| "--> x"
|
|
|
|
#data
|
|
<style> <!--> </style>x
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!--> "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<style> <!---> </style>x
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!---> "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<iframe> <!---> </iframe>x
|
|
#errors
|
|
(1,8): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <iframe>
|
|
| " <!---> "
|
|
| "x"
|
|
|
|
#data
|
|
<iframe> <!--- </iframe>->x</iframe> --> </iframe>x
|
|
#errors
|
|
(1,8): expected-doctype-but-got-start-tag
|
|
(1,36): unexpected-end-tag
|
|
(1,50): unexpected-end-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <iframe>
|
|
| " <!--- "
|
|
| "->x --> x"
|
|
|
|
#data
|
|
<script> <!-- </script> --> </script>x
|
|
#errors
|
|
(1,8): expected-doctype-but-got-start-tag
|
|
(1,37): unexpected-end-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <script>
|
|
| " <!-- "
|
|
| " "
|
|
| <body>
|
|
| "--> x"
|
|
|
|
#data
|
|
<title> <!-- </title> --> </title>x
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
(1,34): unexpected-end-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| " <!-- "
|
|
| " "
|
|
| <body>
|
|
| "--> x"
|
|
|
|
#data
|
|
<textarea> <!--- </textarea>->x</textarea> --> </textarea>x
|
|
#errors
|
|
(1,10): expected-doctype-but-got-start-tag
|
|
(1,42): unexpected-end-tag
|
|
(1,58): unexpected-end-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <textarea>
|
|
| " <!--- "
|
|
| "->x --> x"
|
|
|
|
#data
|
|
<style> <!</-- </style>x
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!</-- "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<p><xmp></xmp>
|
|
#errors
|
|
(1,3): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <p>
|
|
| <xmp>
|
|
|
|
#data
|
|
<xmp> <!-- > --> </xmp>
|
|
#errors
|
|
(1,5): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <xmp>
|
|
| " <!-- > --> "
|
|
|
|
#data
|
|
<title>&</title>
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| "&"
|
|
| <body>
|
|
|
|
#data
|
|
<title><!--&--></title>
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| "<!--&-->"
|
|
| <body>
|
|
|
|
#data
|
|
<title><!--</title>
|
|
#errors
|
|
(1,7): expected-doctype-but-got-start-tag
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| "<!--"
|
|
| <body>
|
|
|
|
#data
|
|
<noscript><!--</noscript>--></noscript>
|
|
#errors
|
|
(1,10): expected-doctype-but-got-start-tag
|
|
(1,39): unexpected-end-tag
|
|
#script-on
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <noscript>
|
|
| "<!--"
|
|
| <body>
|
|
| "-->"
|
|
|
|
#data
|
|
<noscript><!--</noscript>--></noscript>
|
|
#errors
|
|
(1,10): expected-doctype-but-got-start-tag
|
|
#script-off
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <noscript>
|
|
| <!-- </noscript> -->
|
|
| <body>
|