-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inner HTML elements are processed after the tail text #333
Comments
So, the expected order should be (1) node.text, (2) text in the inner node, and (node.tail)? |
I think so. |
HiromuHota
pushed a commit
to HiromuHota/fonduer
that referenced
this issue
Sep 30, 2020
4 tasks
HiromuHota
pushed a commit
to HiromuHota/fonduer
that referenced
this issue
Oct 5, 2020
lukehsiao
pushed a commit
that referenced
this issue
Oct 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
In tests/data/html_simple/md.html,
<em>italics and later <strong>bold</strong></em>. Even
is processed in the following order:italics and later
. Even
bold
This is illustrated in #12 too.
To Reproduce
Steps to reproduce the behavior:
tests/parser/test_parser.py::test_parse_md_details
and set a breakpointExpected behavior
The said sentence is processed in the following order:
italics and later
bold
. Even
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Why this happens?
When the
node
is<em>italics and later <strong>bold</strong></em>
, node.text (=italics and later
) and node.tail (=. Even
) are processed, the next node<strong>bold</strong>
is processed.The text was updated successfully, but these errors were encountered: