Skip to content

Infinite loop for illegal tokens when ignore_illegals or highlightAuto #2522

@wooorm

Description

@wooorm

On 10.0.1, the following XML:

<?xml version="1.0"?>
<response value="ok" xml:lang="en">
  <text>Ok</text>
  <comment html_allowed="true"/>
  <ns1:description><![CDATA[
  CDATA is <not> magical.
  ]]></ns1:description>
  <a></a> <a/>
</response>

When passed through highlightAuto or highlight with ignore_illegals turned on, will cause an infinite loop, specifically, because of '$' as an illegal in CSS selector attributes:

illegal: '$',

Metadata

Metadata

Assignees

Labels

bughotfixbad bug, should fix and release ASAPparser

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions