Skip to content
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

Document type declaration (DOCTYPE) is not parsed #578

Open
quentin-bettoum opened this issue Jun 23, 2024 · 0 comments
Open

Document type declaration (DOCTYPE) is not parsed #578

quentin-bettoum opened this issue Jun 23, 2024 · 0 comments
Labels

Comments

@quentin-bettoum
Copy link

Hello,

I've noticed that the DOCTYPE is not parsed.
I did not dig too much into the lib code yet, but it seems that it's supposed to be parsed.

iex> "<!DOCTYPE html><html></html>"|> Floki.parse_document!() |> Floki.raw_html() |> dbg()

"<!DOCTYPE html><html></html>" #=> "<!DOCTYPE html><html></html>"
|> Floki.parse_document!() #=> [{"html", [], []}]
|> Floki.raw_html() #=> "<html></html>"

"<html></html>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant