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

Ensure IDL blocks are omitted from the dev edition #85

Merged
merged 2 commits into from
Aug 21, 2018

Conversation

sideshowbarker
Copy link
Member

@sideshowbarker sideshowbarker commented Aug 20, 2018

The existing wattsi code for causing IDL blocks to be omitted from the dev edition quit working when whatwg/html#3768 moved class=idl attributes off pre elements and instead onto to code children of those elements,

So the first part of this change causes those code class=idl elements to be dropped as expected. But as a result of that, the now-empty pre element parents of those code elements are left behind. So the second part of this change looks for those empty pre elements and drops them.

Fixes #84

The existing wattsi code for causing IDL blocks to be omitted from the
dev edition quit working when whatwg/html#3768
moved class=idl attributes off `pre` elements and instead onto to
`code` children of those elements,

So the first part of this change causes those `code class=idl` elements
to be dropped as expected. But as a result of that, the now-empty `pre`
element parents of those `code` elements are left behind. So the second
part of this change looks for those empty `pre` elements and drops them.

Fixes #84
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM, but I will add a source comment explaining the second block before merging.

@domenic domenic merged commit c13e47b into master Aug 21, 2018
@domenic domenic deleted the sideshowbarker/idl-blocks-dev-edition-omit branch August 21, 2018 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants