Skip to content

With version 3.2.3 we got an exception on a HTML that was parsed via 3.2.2 without issues #191

@hidegh

Description

@hidegh

Describe the bug
InnerException: {"Index was outside the bounds of the array."}

StackTrace:

   at HtmlToOpenXml.Expressions.TextExpression.Interpret(ParsingContext context)
   at HtmlToOpenXml.Expressions.BlockElementExpression.ComposeChildren(ParsingContext context, IEnumerable`1 childNodes, ParagraphProperties paragraphProperties, Action`1 preAction, Action`1 postAction)
   at HtmlToOpenXml.Expressions.BlockElementExpression.Interpret(ParsingContext context, IEnumerable`1 childNodes)
   at HtmlToOpenXml.Expressions.BlockElementExpression.Interpret(ParsingContext context)
   at HtmlToOpenXml.Expressions.BodyExpression.Interpret(ParsingContext context)
   at HtmlToOpenXml.HtmlConverter.<ParseCoreAsync>d__18.MoveNext()
   at HtmlToOpenXml.HtmlConverter.Parse(String html)

Expected behavior
Parsing HTML successfully - cause 3.2.2 handles it well!

A clear and concise description of what you expected to happen.

Repro
Please include the Html snippet and/or the docx/dotx if relevant

Can't HTML contains sensitive data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions