Editor: Allow popover attributes in editor content.

Add attributes to KSES so that it's possible to create popover interactions natively in the editor. Adds `popovertarget`, `popovertargetaction` and `aria-haspopup` to `button`; `popover` to `div`, `ul`, and adds `dialog` with the attributes `open`, `closedby`, and `popover`.

Props harshdeepgill, jonsurrell, joedolson, sukhendu2002, flixos90, joedolson.
Fixes #61959.
Built from https://develop.svn.wordpress.org/trunk@60884


git-svn-id: http://core.svn.wordpress.org/trunk@60220 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
joedolson
2025-09-30 23:08:31 +00:00
parent a8185d31f0
commit 6bd164afa3
2 changed files with 18 additions and 7 deletions

View File

@@ -109,10 +109,13 @@ if ( ! CUSTOM_TAGS ) {
),
'br' => array(),
'button' => array(
'disabled' => true,
'name' => true,
'type' => true,
'value' => true,
'disabled' => true,
'name' => true,
'type' => true,
'value' => true,
'popovertarget' => true,
'popovertargetaction' => true,
'aria-haspopup' => true,
),
'caption' => array(
'align' => true,
@@ -145,7 +148,13 @@ if ( ! CUSTOM_TAGS ) {
'open' => true,
),
'div' => array(
'align' => true,
'align' => true,
'popover' => true,
),
'dialog' => array(
'closedby' => true,
'open' => true,
'popover' => true,
),
'dl' => array(),
'dt' => array(),
@@ -362,7 +371,9 @@ if ( ! CUSTOM_TAGS ) {
'tt' => array(),
'u' => array(),
'ul' => array(
'type' => true,
'type' => true,
'popover' => true,
'role' => true,
),
'ol' => array(
'start' => true,

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.9-alpha-60816';
$wp_version = '6.9-alpha-60884';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.