Skip to content

Commit 2fe26ce

Browse files
committed
Editor: Add 6 missing HTML5 semantic tags (data, meter, progress, search, time, wbr) and their attributes to KSES.
1. `data` (attribute: `value`) 2. `meter` (attributes: `high`, `low`, `max`, `min`, `optimum`, `value`) 3. `progress` (attributes: `max`, `value`) 4. `search` 5. `time` (attribute: `datetime`) 6. `wbr` Props ramiy, rollybueno, westonruter. Fixes #63786. git-svn-id: https://develop.svn.wordpress.org/trunk@60886 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 99d8742 commit 2fe26ce

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/wp-includes/kses.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
'valign' => true,
139139
'width' => true,
140140
),
141+
'data' => array(
142+
'value' => true,
143+
),
141144
'del' => array(
142145
'datetime' => true,
143146
),
@@ -243,6 +246,14 @@
243246
'menu' => array(
244247
'type' => true,
245248
),
249+
'meter' => array(
250+
'high' => true,
251+
'low' => true,
252+
'max' => true,
253+
'min' => true,
254+
'optimum' => true,
255+
'value' => true,
256+
),
246257
'nav' => array(
247258
'align' => true,
248259
),
@@ -262,6 +273,10 @@
262273
'pre' => array(
263274
'width' => true,
264275
),
276+
'progress' => array(
277+
'max' => true,
278+
'value' => true,
279+
),
265280
'q' => array(
266281
'cite' => true,
267282
),
@@ -272,6 +287,7 @@
272287
'ruby' => array(),
273288
's' => array(),
274289
'samp' => array(),
290+
'search' => array(),
275291
'span' => array(
276292
'align' => true,
277293
),
@@ -353,6 +369,9 @@
353369
'charoff' => true,
354370
'valign' => true,
355371
),
372+
'time' => array(
373+
'datetime' => true,
374+
),
356375
'title' => array(),
357376
'tr' => array(
358377
'align' => true,
@@ -393,6 +412,7 @@
393412
'src' => true,
394413
'width' => true,
395414
),
415+
'wbr' => array(),
396416
);
397417

398418
/**

0 commit comments

Comments
 (0)