Skip to content

[fuzz result] false positive inline HTML within blockquote #857

@notriddle

Description

@notriddle

In this sample doc, there definitely shouldn't be any inline HTML, because inline HTML tags are required to have an > at the end. The > in the document is part of the block quote, not the HTML:

><span
title
>junk

Events from pulldown-cmark:

"><V\nT\n>T" -> [
  Start(BlockQuote)
    Start(Paragraph)
      Html(Boxed("<V\nT"))
      Text(Borrowed("T"))
    End(Paragraph)
  End(BlockQuote)
]

Events from commonmark.js:

"><V\nT\n>T" -> [
  Start(BlockQuote)
    Start(Paragraph)
      Text(Boxed("<V"))
      SoftBreak
      Text(Boxed("T"))
      SoftBreak
      Text(Boxed("T"))
    End(Paragraph)
  End(BlockQuote)
]

XML from commonmark.js:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document SYSTEM "CommonMark.dtd">
<document xmlns="http://commonmark.org/xml/1.0">
  <block_quote>
    <paragraph>
      <text>&lt;</text>
      <text>V</text>
      <softbreak />
      <text>T</text>
      <softbreak />
      <text>T</text>
    </paragraph>
  </block_quote>
</document>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions