Skip to content

Honor implied end tags for dt and dd - #319

Open
adarshx01 wants to merge 1 commit into
taoqf:mainfrom
adarshx01:fix/unclosed-dt-dd
Open

Honor implied end tags for dt and dd#319
adarshx01 wants to merge 1 commit into
taoqf:mainfrom
adarshx01:fix/unclosed-dt-dd

Conversation

@adarshx01

Copy link
Copy Markdown

Fixes #315

HTML lets dt/dd omit their end tags. The parser didn't close them when the next dt/dd started or when dl/body/html closed, so the stack didn't match and the leftover-tag cleanup dropped body/dl.

Same implied-end-tag tables already used for li/p/td.

Unclosed dt/dd left the parser stack mismatched, so closing a parent
dl/body dropped the surrounding tree. Close them the way HTML does:
another dt/dd starts, or the parent dl/body/html ends.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] unclosed dd/dt tags corrupt the output

1 participant