Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [d1922cc31585b02011bf2928b96f5550f9dc496c] by Jeffrey Hardy

Revision d1922cc31585b02011bf2928b96f5550f9dc496c, committed by Jeffrey Hardy · October 24th, 2008 @ 03:22 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