Swaagie / minimize

Minimize HTML
MIT License
162 stars 18 forks source link

Track elements are not considered void elements #95

Open hans-pragt opened 6 years ago

hans-pragt commented 6 years ago

When adding track elements to a video element, they should not be closed since they are a void element. Currently, this package converts:

<video>
  <track>
</video>

to

<video>
   <track></track>
</video>

which causes errors in Angular applications.

Note: I think this is the right repo to file this bug, but I am using this package through html-minify-loader.