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.
61 lines
957 B
Plaintext
61 lines
957 B
Plaintext
#data
|
|
direct div content
|
|
#errors
|
|
#document-fragment
|
|
div
|
|
#document
|
|
| "direct div content"
|
|
|
|
#data
|
|
direct textarea content
|
|
#errors
|
|
#document-fragment
|
|
textarea
|
|
#document
|
|
| "direct textarea content"
|
|
|
|
#data
|
|
textarea content with <em>pseudo</em> <foo>markup
|
|
#errors
|
|
#document-fragment
|
|
textarea
|
|
#document
|
|
| "textarea content with <em>pseudo</em> <foo>markup"
|
|
|
|
#data
|
|
this is CDATA inside a <style> element
|
|
#errors
|
|
#document-fragment
|
|
style
|
|
#document
|
|
| "this is CDATA inside a <style> element"
|
|
|
|
#data
|
|
</plaintext>
|
|
#errors
|
|
#document-fragment
|
|
plaintext
|
|
#document
|
|
| "</plaintext>"
|
|
|
|
#data
|
|
setting html's innerHTML
|
|
#errors
|
|
Line: 1 Col: 24 Unexpected EOF in inner html mode.
|
|
#document-fragment
|
|
html
|
|
#document
|
|
| <head>
|
|
| <body>
|
|
| "setting html's innerHTML"
|
|
|
|
#data
|
|
<title>setting head's innerHTML</title>
|
|
#errors
|
|
Line: 1 Col: 7 Unexpected start tag (title) that can be in head. Moved.
|
|
#document-fragment
|
|
head
|
|
#document
|
|
| <title>
|
|
| "setting head's innerHTML"
|