a6429f8c22
Completely removed the html5lib sanitizer. Fixed the string-handling to work in both Ruby 1.8.x and 1.9.2. There are still, inexplicably, two functional tests that fail. But the rest seems to work quite well.
176 lines
3 KiB
Plaintext
176 lines
3 KiB
Plaintext
#data
|
|
<style> <!-- </style>x
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
|
|
Line: 1 Col: 22 Unexpected end of file. Expected end tag (style).
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!-- </style>x"
|
|
| <body>
|
|
|
|
#data
|
|
<style> <!-- </style> --> </style>x
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!-- </style> --> "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<style> <!--> </style>x
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!--> "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<style> <!---> </style>x
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!---> "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<iframe> <!---> </iframe>x
|
|
#errors
|
|
Line: 1 Col: 8 Unexpected start tag (iframe). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <iframe>
|
|
| " <!---> "
|
|
| "x"
|
|
|
|
#data
|
|
<iframe> <!--- </iframe>->x</iframe> --> </iframe>x
|
|
#errors
|
|
Line: 1 Col: 8 Unexpected start tag (iframe). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <iframe>
|
|
| " <!--- </iframe>->x</iframe> --> "
|
|
| "x"
|
|
|
|
#data
|
|
<script> <!-- </script> --> </script>x
|
|
#errors
|
|
Line: 1 Col: 8 Unexpected start tag (script). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <script>
|
|
| " <!-- </script> --> "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<title> <!-- </title> --> </title>x
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| " <!-- </title> --> "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<textarea> <!--- </textarea>->x</textarea> --> </textarea>x
|
|
#errors
|
|
Line: 1 Col: 10 Unexpected start tag (textarea). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <textarea>
|
|
| " <!--- </textarea>->x</textarea> --> "
|
|
| "x"
|
|
|
|
#data
|
|
<style> <!</-- </style>x
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (style). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <style>
|
|
| " <!</-- "
|
|
| <body>
|
|
| "x"
|
|
|
|
#data
|
|
<xmp> <!-- > --> </xmp>
|
|
#errors
|
|
Line: 1 Col: 5 Unexpected start tag (xmp). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <body>
|
|
| <xmp>
|
|
| " <!-- > --> "
|
|
|
|
#data
|
|
<title>&</title>
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| "&"
|
|
| <body>
|
|
|
|
#data
|
|
<title><!--&--></title>
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| "<!--&-->"
|
|
| <body>
|
|
|
|
#data
|
|
<title><!--</title>
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (title). Expected DOCTYPE.
|
|
Line: 1 Col: 19 Unexpected end of file. Expected end tag (title).
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <title>
|
|
| "<!--</title>"
|
|
| <body>
|
|
|
|
#data
|
|
<noscript><!--</noscript>--></noscript>
|
|
#errors
|
|
Line: 1 Col: 10 Unexpected start tag (noscript). Expected DOCTYPE.
|
|
#document
|
|
| <html>
|
|
| <head>
|
|
| <noscript>
|
|
| "<!--</noscript>-->"
|
|
| <body>
|