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

Only return a DOCTYPE if there is one #692

Merged
merged 1 commit into from
May 18, 2021
Merged

Only return a DOCTYPE if there is one #692

merged 1 commit into from
May 18, 2021

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented Apr 27, 2021

This PR fixes a problem where adaptor.doctype() could fail if the original document doesn't have a <!DOCTYPE> comment (in HTML and jsdom adaptors). It also prevents the LiteDOM from returning a doctype if the original didn't have one.

@dpvc dpvc added this to the 3.2 milestone Apr 27, 2021
@dpvc dpvc requested a review from zorkow April 27, 2021 16:54
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm.

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.

2 participants