Make WordPress Core


Ignore:
Timestamp:
03/21/2022 12:11:08 AM (3 years ago)
Author:
peterwilsoncc
Message:

KSES: Allow lang, xml:lang, dir attributes globally.

Globally permit the lang, xml:lang, and dir attributes on all elements rather than a subset in accordance with the HTML specification.

Props upsuper, SergeyBiryukov, mukesh27, audrasjb.
Fixes #54699.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/kses.php

    r52326 r52968  
    495495        foreach ( $tags as $tag ) {
    496496            $this->assertTrue( $tag['class'] );
     497            $this->assertTrue( $tag['dir'] );
    497498            $this->assertTrue( $tag['id'] );
     499            $this->assertTrue( $tag['lang'] );
    498500            $this->assertTrue( $tag['style'] );
    499501            $this->assertTrue( $tag['title'] );
     502            $this->assertTrue( $tag['xml:lang'] );
    500503        }
    501504
Note: See TracChangeset for help on using the changeset viewer.