Fix reading HTML via XmlReader API when root element is absent#16
Open
greatvovan wants to merge 1 commit intoMindTouch:masterfrom
Open
Fix reading HTML via XmlReader API when root element is absent#16greatvovan wants to merge 1 commit intoMindTouch:masterfrom
greatvovan wants to merge 1 commit intoMindTouch:masterfrom
Conversation
|
Awesome, just the same problem as I'm having here, too. Hopefully it get's integrated and published to NuGet, soon. I'm now wrapping my HTML fragments inside an artificial |
|
I'm worried this change is too HTML centric, what about SgmlReader over other types of data, like OFX ? |
Author
|
@lovettchris I can not see how it affects OFX and other types. Why did you get this particular doubt? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consider folowing snippet:
On version 1.8.12 SGMLReader fails to read all document since it comes to this section twice:
It only returns the first
<p>element and opening tag for second.It was working in old good version 1.8.6, but I don't have a code of it, as on GitHub history starts from version 1.8.7 wich is already broken.
This commit allows to fix this behavior if user has set DocType to "HTML" explicitly.