trullock / NUglify

NUglify is a HTML, JavaScript and CSS minification Library for .NET (fork of AjaxMin + new features)
Other
396 stars 79 forks source link

aria-* attributes do not need to be minified with short boolean attribute optimization. #330

Open Shobb opened 2 years ago

Shobb commented 2 years ago

Just watch Lighthouse messages on reduced aria-* attributes. Your minifier works correctly. But you don't have to.

trullock commented 2 years ago

So there is no issue and the current behaviour is in fact optimal?

Shobb commented 2 years ago

From a technical point of view, everything is correct. But Lighthouse warns of minified attributes: [aria-*] attributes do not have valid values If you continue to research on this issue - it turns out that such attributes cannot be minimized - this is a logical error.