Skip to content

Issue With MarkUpMatches() Removing Tags #197

Answered by egil
brychart asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @FlorianRappl for helping clearing this up. This is sort of a "works as unexpected" 🤷‍♂️😉

I will add an issue to see if I can get a good solution for this for the special cases around TR, TD, TH, TBODY and THEAD. There might be other elements that the HTML parser does not expect in the BODY context. So I will have to investigate further.

But for now, @brychart, you will have to assert a different way than using MarkupMatches. Maybe use cut.Find("th").TextContent.Should.Be("Title").

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@brychart
Comment options

Comment options

You must be logged in to vote
2 replies
@brychart
Comment options

@egil
Comment options

egil Aug 27, 2020
Maintainer

Comment options

You must be logged in to vote
2 replies
@egil
Comment options

egil Aug 27, 2020
Maintainer

@egil
Comment options

egil Aug 27, 2020
Maintainer

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@brychart
Comment options

@egil
Comment options

egil Aug 28, 2020
Maintainer

@FlorianRappl
Comment options

@egil
Comment options

egil Aug 29, 2020
Maintainer

Answer selected by brychart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants