[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:09:03 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  |     Focuses:
--------------------------------------+------------------------------
Changes (by Bernhard Reiter):

 * owner:  (none) => Bernhard Reiter
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55667" 55667]:
 {{{
 #!CommitTicketReference repository="" revision="55667"
 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.
 Fixes #58007.
 }}}

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


More information about the wp-trac mailing list