[wp-trac] [WordPress Trac] #58007: HTML API: Support comments created by invalid tag name in tag closers

WordPress Trac noreply at wordpress.org
Thu Apr 20 17:15:54 UTC 2023


#58007: HTML API: Support comments created by invalid tag name in tag closers
-------------------------------------------------+-------------------------
 Reporter:  dmsnell                              |       Owner:  Bernhard
                                                 |  Reiter
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.2.1
Component:  HTML API                             |     Version:  6.2
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-      |     Focuses:
  major                                          |
-------------------------------------------------+-------------------------
Changes (by Bernhard Reiter):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55668" 55668]:
 {{{
 #!CommitTicketReference repository="" revision="55668"
 HTML API: Add support for a few invalid HTML comment forms.

  - Comments created by means of a tag closer with an invalid tag name,
 e.g. `</3>`.
  - Comments closed with the invalid `--!>` closer. (Comments should be
 closed by `-->` but if the `!` appears it will also close it, in error.)
  - Empty tag name elements, which are technically skipped over and aren't
 comments, e.g. `</>`.

 Props dmsnell, costdev.
 Merges [55667] to the 6.2 branch.
 Fixes #58007.
 }}}

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


More information about the wp-trac mailing list