Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 2 years ago

#60215 closed enhancement (fixed)

HTML API: Add support for list elements.

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

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 years 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 years ago

  • Owner set to dmsnell
  • Resolutionfixed
  • Status newclosed

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 years ago
#3

Merged in [57264]

#4 @stevenlinx
2 years ago

  • Keywords needs-dev-note added

as part of a standalone dev note post

Note: See TracTickets for help on using tickets.