[wp-trac] [WordPress Trac] #64567: HTML API: get_attribute_names_with_prefix() should agree with enqueued attribute updates.

WordPress Trac noreply at wordpress.org
Fri Jan 30 08:26:24 UTC 2026


#64567: HTML API: get_attribute_names_with_prefix() should agree with enqueued
attribute updates.
--------------------------------------+---------------------
 Reporter:  dmsnell                   |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  7.0
Component:  HTML API                  |     Version:  6.2
 Severity:  minor                     |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+---------------------

Comment (by whaze):

 Testing:
 {{{#!php
 <?php
 $p = new WP_HTML_Tag_Processor( '<div>' );
 $p->next_tag();
 $p->set_attribute( 'id', 'test' );
 // Now correctly returns ['id']
 var_dump( $p->get_attribute_names_with_prefix( '' ) );
 }}}

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


More information about the wp-trac mailing list