Skip to content

[HTML, XML] Don't interpret <? and <% inside CDATA section #252

@zufuliu

Description

@zufuliu

Created for https://sourceforge.net/p/scintilla/bugs/1078/.

Per https://html.spec.whatwg.org/multipage/syntax.html#cdata-sections and https://www.w3.org/TR/xml11/#sec-cdata-sect, CDATA section is a literal block and only the closing ]]> is recognized. I think here are two fixes:

  1. Only interpret <? inside CDATA section for SCLEX_PHPSCRIPT.
  2. Don't interpret <? inside XML CDATA section (original bug), let SCLEX_HTML as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    aspCaused by ASP or ASP.NET for the html lexerhtmlCaused by the hypertext lexerphpCaused by the hypertext lexer for PHPxmlCaused by the xml lexer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions