Make WordPress Core

Opened 3 months ago

Closed 3 months ago

Last modified 2 months ago

#60215 closed enhancement (fixed)

HTML API: Add support for list elements.

Reported by: dmsnell's profile dmsnell Owned by: dmsnell's profile dmsnell
Milestone: 6.5 Priority: normal
Severity: normal Version: 6.5
Component: HTML API Keywords: has-patch has-unit-tests needs-dev-note
Focuses: Cc:

Description

Adds support to the HTML Processor for the following elements, enabling the handling of list elements in HTML:

  • UL, OL, LI
  • DT, DL, DD

Previously, the HTML Processor would bail when encountering any of these tags. Now it will properly handle them and their complicated rules.

Change History (4)

This ticket was mentioned in PR #5539 on WordPress/wordpress-develop by @dmsnell.


3 months ago
#1

Trac ticket: Core-60215

  • [ ] Add comment at top of HTML Processor indicating new tag support.
  • [ ] Needs a comprehensive suite of tests due to the complicated nature of list rules.

#2 @dmsnell
3 months ago

  • Owner set to dmsnell
  • Resolution set to fixed
  • Status changed from new to closed

In 57264:

HTML API: Add support for list elements.

Adds support for the following HTML elements to the HTML Processor:

  • LI, OL, UL.
  • DD, DL, DT.

Previously, these elements were not supported and the HTML Processor would bail when encountering them.
With this patch it will proceed to parse an HTML document when encountering those tags as long as other normal conditions don't cause it to bail (such as complicated format reconstruction).

Props audrasjb, jonsurrell, bernhard-reiter.
Fixes #60215.

@dmsnell commented on PR #5539:


3 months ago
#3

Merged in [57264]

#4 @stevenlinx
2 months ago

  • Keywords needs-dev-note added

as part of a standalone dev note post

Note: See TracTickets for help on using tickets.