mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-07 19:31:54 +01:00
3b58785908
When setting a new value for an attribute multiple times and providing multiple case variations of the attribute name the Tag Processor has been appending multiple copies of the attribute into the updated HTML. This means that only the first attribute set determines the value in the final output, plus the output will //appear// wrong. In this patch we're adding a test to catch the situation and resolving it by using the appropriate comparable attribute name as a key for storing the updates as we go. Previously we stored updates to the attribute by its given `$name`, but when a new update of the same name with a case variant was queued, it would not override the previously-enqueued value as it out to have. Props dmsnell, zieladam. Fixes #58146. Built from https://develop.svn.wordpress.org/trunk@55659 git-svn-id: http://core.svn.wordpress.org/trunk@55171 1a063a9b-81f0-0310-95a4-ce76da25c4cd |
||
---|---|---|
.. | ||
class-wp-html-attribute-token.php | ||
class-wp-html-span.php | ||
class-wp-html-tag-processor.php | ||
class-wp-html-text-replacement.php |