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

Not handling mixed content correctly #21

Open
chrisbottin opened this issue Nov 10, 2016 · 1 comment
Open

Not handling mixed content correctly #21

chrisbottin opened this issue Nov 10, 2016 · 1 comment

Comments

@chrisbottin
Copy link

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 ' } 
}
@chrisbottin
Copy link
Author

Any chance this could be supported soon?

I wanted to use your library but I'm facing this blocker.

@chrisbottin chrisbottin changed the title Not handling mixed mode content correctly Not handling mixed content correctly Nov 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant