This project is archived and is in readonly mode.
Changeset [1a1822726189f3cfff305dea62e5cfbdbc0da577] by Jeffrey Hardy
Revision 1a1822726189f3cfff305dea62e5cfbdbc0da577,
committed by Jeffrey Hardy
· October 24th, 2008 @ 03:16 AM
Fix that HTML::Node.parse would blow up on unclosed CDATA sections.
If an unclosed CDATA section is encountered and parsing is strict, an exception will be raised. Otherwise, we consider the remainder of the line to be the section contents. This is consistent with HTML::Tokenizer#scan_tag.
Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...
3 changed files
-
M
actionpack/lib/action_controller/vendor/html-scanner/html/node.rb -
M
actionpack/test/controller/html-scanner/node_test.rb -
M
actionpack/test/controller/html-scanner/sanitizer_test.rb