Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

Not handling mixed content correctly #21

@chrisbottin

Description

@chrisbottin

Given the following example:
<a>foo <b>bar <c>baz</c></b>bad</a>

Issue: The text "bad" is lost when parsed.

The actual output is:

{ 
  declaration: undefined,
  root: 
  { 
     name: 'a',
     attributes: {},
     children: 
      [ 
         {
             name: 'b',
              attributes: {},
              children: [ { name: 'c', attributes: {}, children: [], content: 'baz' } ],
              content: 'bar ' 
         } 
     ],
     content: 'foo ' } 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions