We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd been getting parse errors such as this in my unit tests
Error: Failed to execute 'setAttribute' on 'Element': '\n'' is not a valid attribute name.
This happens when I define attributes on new lines for cleaner looking html files.
`<div class="row" some-attr="bar" another attr="foo"
Errors are fixed by changing the html to look like `<div class="row" some-attr="bar" another-attr="foo"
My question is why isn't the html minified before being converted to JS string? Or at least can that be an option?
Using html-minifier to minify the code before converting to JS strings works. I did a quick test.
The text was updated successfully, but these errors were encountered:
I guess even github removed the new lines in from my HTML template.
The first version of the template:
Sorry, something went wrong.
No branches or pull requests
I'd been getting parse errors such as this in my unit tests
This happens when I define attributes on new lines for cleaner looking html files.
`<div class="row"
`some-attr="bar"
another attr="foo"
Errors are fixed by changing the html to look like
``<div class="row" some-attr="bar" another-attr="foo"
My question is why isn't the html minified before being converted to JS string? Or at least can that be an option?
Using html-minifier to minify the code before converting to JS strings works. I did a quick test.
The text was updated successfully, but these errors were encountered: