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.

HTML::Node.parse shouldn't blow up on unclosed CDATA sections

#1257

Currently, the HTML scanner's Node.parse will raise an exception if it hits an unclosed CDATA section.

With this patch, 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 how CDATA sections are handled by the tokenizer.

This patch also adds sanitization tests for valid and unclosed CDATA sections.

Reported by Jeffrey Hardy · October 23rd, 2008 @ 04:41 AM

State: committed
Milestone: 2.1.3
Assigned to: nobody
Importance: High

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone changed from 2.x to 2.1.3

    October 24th, 2008 @ 03:21 AM

  2. DHH
    DHH
    • State changed from new to committed

    October 26th, 2008 @ 03:54 PM