Skip to content

Conversation

shinnn
Copy link
Contributor

@shinnn shinnn commented Sep 25, 2018

Before

const {minify} = require('html-minifier');

minify('<script nomodule="nomodule"></script>', {collapseBooleanAttributes: true});
//=> '<script nomodule="nomodule"></script>'

After

const {minify} = require('html-minifier');

minify('<script nomodule="nomodule"></script>', {collapseBooleanAttributes: true});
//=> '<script nomodule></script>'

ref. specification of nomodule attribute: https://html.spec.whatwg.org/multipage/scripting.html#attr-script-nomodule

@shinnn
Copy link
Contributor Author

shinnn commented Dec 17, 2018

Could anyone review this?

@alexlamsl
Copy link
Collaborator

alexlamsl commented Mar 22, 2019

Please add a test case (around here) to make sure your change is working as expected.

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