Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

it will parsing error when element name is "col" #140

Open
wwELi opened this issue Jul 20, 2023 · 1 comment
Open

it will parsing error when element name is "col" #140

wwELi opened this issue Jul 20, 2023 · 1 comment

Comments

@wwELi
Copy link

wwELi commented Jul 20, 2023

example:

<col><text></text></col>

parse result:
image

element "text" should be in col children ,but not in

@andrejewski
Copy link
Owner

@wwELi This behavior is customizable! The default behavior is that col is a "void" tag:

'!doctype', 'area', 'base', 'br', 'col', 'command',

So pass in different options to have it treated as you expect.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants