Skip to content

Fix void elements #8

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

Merged
merged 1 commit into from
Jul 24, 2017
Merged

Fix void elements #8

merged 1 commit into from
Jul 24, 2017

Conversation

markhalliwell
Copy link

@markhalliwell markhalliwell commented Oct 7, 2016

  • Upgrade and actually use the void-elements module that this package depends on.
  • Don't assume it's a void element just because / is at the end of the tag, actually use the lookup.

- Upgrade and actually use the `void-elements` module that this package depends on.
- Don't assume it's a void element just because `/` is at the end of the tag, actually use the lookup.
@markhalliwell
Copy link
Author

Not really sure why the tests are failing, but it's not because of these changes...

@rayd rayd merged commit eeb117b into rayd:master Jul 24, 2017
rayd added a commit that referenced this pull request Jul 24, 2017
@rayd
Copy link
Owner

rayd commented Jul 24, 2017

Sorry for the huge delay on these PRs your submitted @MarkCarver! I appreciate the work you put in! Made a couple tweaks to things based on some submitted issues and reading over the HTML spec. For this one, it seemed like we ought to support handling tags that declare themselves as self-closing as "void elements" in the parser, since the spec allows one to declare "foreign elements" that can be self-closing.

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