[wp-trac] [WordPress Trac] #62246: wp_print_font_faces() prints an HTML tag with an id property despite being able to be used more than once.

WordPress Trac noreply at wordpress.org
Thu Oct 17 17:25:42 UTC 2024


#62246: wp_print_font_faces() prints an HTML tag with an id property despite being
able to be used more than once.
--------------------------+-----------------------------
 Reporter:  mmaattiiaass  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 **wp_print_font_faces()** prints an HTML tag with an id property despite
 being able to be used more than once, so the document can end up with
 multiple tags with the same id attribute
 {{{
 <style id='wp-fonts-local'></style>
 }}}


 The id global attribute defines an identifier (ID) which must be unique in
 the whole document. Reference: https://developer.mozilla.org/en-
 US/docs/Web/HTML/Global_attributes/id

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62246>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list