strange table behaviour #561
Replies: 2 comments 1 reply
-
|
seems to be happening, because the parser inserts <tbody>, but with it in there I am getting this even stranger behaviour: this: which seems especially odd as tr is not required to be in a tbody, but can be contained directly within a table, as specified in the table content model:
and the tr contexts:
|
Beta Was this translation helpful? Give feedback.
-
|
actually, I had a second opening tbody instead of a closing one, so that behaviour isn't that strange after all, but it is odd that tbody is required when it shouldn't be. I would have hoped that since AngleSharp, if indeed that is causing this, claims to be standards compliant that it wouldn't exhibit such eccentricities. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am trying to restrict the allowed tags by clearing the set and adding a restricted list like so:
but finding that it strips tr tags and their children and content, but just stripping td tags and leaving their content.
this:
"<ul><li>the item in this list containing this <tr> </tr> <td>should stay</td> <table class="right"> </table> as it is</li></ul>"
becomes:
"<ul><li>the item in this list containing this should stay <table class="right"> </table> as it is</li></ul>"
this:
"<ul><li>the item in this list containing this <tr> <td>should stay</td> </tr> <table class="right"> </table> as it is</li></ul>"
becomes:
"<ul><li>the item in this list containing this should stay <table class="right"> </table> as it is</li></ul>"
this:
"<ul><li>the item in this list containing this <table class="right"> <tr> <td>should stay</td> </tr> </table> as it is</li></ul>"
becomes:
"<ul><li>the item in this list containing this <table class="right"> </table> as it is</li></ul>"
this:
"<ul><li>the item in this list containing this <table><tr class="right"><td>should stay</td></tr></table> as it is</li></ul>"
becomes:
"<ul><li>the item in this list containing this <table></table> as it is</li></ul>"
I would expect all of these to not be changed.
am I not understanding how this works?
Beta Was this translation helpful? Give feedback.
All reactions