dart-lang / html

Dart port of html5lib. For parsing HTML/HTML5 with Dart. Works in the client and on the server.
https://pub.dev/packages/html
Other
276 stars 58 forks source link

Incorrect handling of attributes with empty or absent value #206

Open arjanmels opened 1 year ago

arjanmels commented 1 year ago

The library does not write empty ('') attributes to the output text.

This is valid html syntax and used in e.g. the video tag: <video controls>.

A fallback could be: <video controls=''>