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

Handle doctype in raw_html, fixes #155 #157

Merged
merged 1 commit into from Dec 4, 2017
Merged

Handle doctype in raw_html, fixes #155 #157

merged 1 commit into from Dec 4, 2017

Conversation

jhchen
Copy link
Contributor

@jhchen jhchen commented Nov 29, 2017

Not sure how to add tests but the cases I tried were

<!DOCTYPE html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!DOCTYPE note SYSTEM "Note.dtd">

using Floki.parse() and Floki.raw_html()

@sourcelevel-bot
Copy link

Hello, @jhchen! This is your first Pull Request that will be reviewed by Ebert, an automatic Code Review service. It will leave comments on this diff with potential issues and style violations found in the code as you push new commits. You can also see all the issues found on this Pull Request on its review page. Please check our documentation for more information.

@philss philss merged commit c9825e2 into philss:master Dec 4, 2017
philss added a commit that referenced this pull request Dec 4, 2017
@philss
Copy link
Owner

philss commented Dec 4, 2017

Thank you, @jhchen! 😃

I added a test with this commit f379af3.
We could test more scenarios later.

Also, I need to think about how to test those things that are different between the two parsers (#156)

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.

None yet

2 participants