Choose one: is this a π bug report or π feature request?
π
No config. Just a HTML5 Boilerplate with Parcel.
When running parcel build index.html --public-url ./
, any HTML should not be altered.
When running parcel build index.html --public-url ./
:
<input type="text" name="FirstName" class="form-control" id="FirstName" placeholder="*Firstname" required>
changes to
<input name="FirstName" class="form-control" id="FirstName" placeholder="*Firstname" required="">
Not sure.
Need type="text" to stay, especially when using CSS [type="text"].
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.4.1
| Node | 8.5.0
| npm/Yarn | 5.3.0
| Operating System | macOS 10.13.2
When is this a problem? Because Iβm pretty sure the browser defaults to assuming that an input is type=βtextβ
, so itβs actually kinda redundant information.
Is there some case you encountered where this behavior getβs in the way?
@davidnagli it's a problem because it breaks CSS selectors, it's a known side-effect from htmlnano
@donaldallen did you try the htmlnano
removeRedundantAttributes
option?
Example, in a .htmlnanorc
file (see #445 for a list of possible location for the configuration) :
{
removeRedundantAttributes: false
}
That did the trick. Thanks @fathyb!
Most helpful comment
@davidnagli it's a problem because it breaks CSS selectors, it's a known side-effect from
htmlnano
@donaldallen did you try the
htmlnano
removeRedundantAttributes
option?Example, in a
.htmlnanorc
file (see #445 for a list of possible location for the configuration) :