Changeset 52188
- Timestamp:
- 11/16/2021 07:40:36 PM (23 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r52132 r52188 2515 2515 $newtext = ''; 2516 2516 // Known single-entity/self-closing tags. 2517 $single_tags = array( 'area', 'base', 'basefont', 'br', 'col', 'command', 'embed', 'frame', 'hr', 'img', 'input', 'isindex', 'link', 'meta', 'param', 'source' );2517 $single_tags = array( 'area', 'base', 'basefont', 'br', 'col', 'command', 'embed', 'frame', 'hr', 'img', 'input', 'isindex', 'link', 'meta', 'param', 'source', 'track', 'wbr' ); 2518 2518 // Tags that can be immediately nested within themselves. 2519 $nestable_tags = array( ' blockquote', 'div', 'object', 'q', 'span' );2519 $nestable_tags = array( 'article', 'aside', 'blockquote', 'details', 'div', 'figure', 'object', 'q', 'section', 'span' ); 2520 2520 2521 2521 // WP bug fix for comments - in case you REALLY meant to type '< !--'. -
trunk/tests/phpunit/tests/formatting/balanceTags.php
r52010 r52188 8 8 public function nestable_tags() { 9 9 return array( 10 array( 'article' ), 11 array( 'aside' ), 10 12 array( 'blockquote' ), 13 array( 'details' ), 11 14 array( 'div' ), 15 array( 'figure' ), 12 16 array( 'object' ), 13 17 array( 'q' ), 18 array( 'section' ), 14 19 array( 'span' ), 15 20 ); … … 35 40 array( 'param' ), 36 41 array( 'source' ), 42 array( 'track' ), 43 array( 'wbr' ), 37 44 ); 38 45 }
Note: See TracChangeset
for help on using the changeset viewer.