mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Add inert attribute to boolean list (#12729)
* added changeset * added changeset
This commit is contained in:
parent
ee66a45b25
commit
8b1cecd6b4
2 changed files with 6 additions and 1 deletions
5
.changeset/twelve-donuts-hide.md
Normal file
5
.changeset/twelve-donuts-hide.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
"Added `inert` to htmlBooleanAttributes"
|
|
@ -7,7 +7,7 @@ import { HTMLString, markHTMLString } from '../escape.js';
|
||||||
export const voidElementNames =
|
export const voidElementNames =
|
||||||
/^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;
|
/^(area|base|br|col|command|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i;
|
||||||
const htmlBooleanAttributes =
|
const htmlBooleanAttributes =
|
||||||
/^(?:allowfullscreen|async|autofocus|autoplay|checked|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|selected|itemscope)$/i;
|
/^(?:allowfullscreen|async|autofocus|autoplay|checked|controls|default|defer|disabled|disablepictureinpicture|disableremoteplayback|formnovalidate|hidden|inert|loop|nomodule|novalidate|open|playsinline|readonly|required|reversed|scoped|seamless|selected|itemscope)$/i;
|
||||||
|
|
||||||
const AMPERSAND_REGEX = /&/g;
|
const AMPERSAND_REGEX = /&/g;
|
||||||
const DOUBLE_QUOTE_REGEX = /"/g;
|
const DOUBLE_QUOTE_REGEX = /"/g;
|
||||||
|
|
Loading…
Reference in a new issue