[wp-trac] [WordPress Trac] #63786: KSES: Add new allowed HTML tags

WordPress Trac noreply at wordpress.org
Mon Aug 4 14:58:39 UTC 2025


#63786: KSES: Add new allowed HTML tags
-------------------------+---------------------
 Reporter:  ramiy        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  6.9
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------

Comment (by westonruter):

 @ramiy I'm curious how you came across this specific set of tags to add.
 Were they specific ones that you found were needed? There are other
 fundamental tags which aren't allowed yet either, like `option` or
 `optgroup` or `select`, as you can see not even `form` is allowed,
 intentionally: https://github.com/WordPress/wordpress-
 develop/blob/c4186c044f3dd6599f479dcfc5d84ad24bcebea5/src/wp-
 includes/kses.php#L900

 So it doesn't seem to make sense to add `datalist`.

 A tag that is currently missing which would seem to make sense is `wbr`.

 Are there others?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63786#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list