--- 'astro': major --- Fixes attribute rendering for non-[boolean HTML attributes](https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML) with boolean values to match proper attribute handling in browsers. Previously, non-boolean attributes may not have included their values when rendered to HTML. In Astro v5.0, the values are now explicitly rendered as `="true"` or `="false"` In the following `.astro` examples, only `allowfullscreen` is a boolean attribute: ```astro

``` Astro v5.0 now preserves the full data attribute with its value when rendering the HTML of non-boolean attributes: ```diff

-

+

-

+

-

+

``` If you rely on attribute values, for example to locate elements or to conditionally render, update your code to match the new non-boolean attribute values: ```diff - el.getAttribute('inherit') === '' + el.getAttribute('inherit') === 'false' - el.hasAttribute('data-light') + el.dataset.light === 'true' ```