Make WordPress Core

Changeset 55203


Ignore:
Timestamp:
02/03/2023 01:03:59 AM (20 months ago)
Author:
azaozz
Message:

Introduce HTML API with HTML Tag Processor

This commit pulls in the HTML Tag Processor from the Gutenbeg repository.

The Tag Processor attempts to be an HTML5-spec-compliant parser that provides the ability in PHP to find specific HTML tags and then add, remove, or update attributes on that tag. It provides a safe and reliable way to modify the attribute on HTML tags.

More information: https://github.com/WordPress/wordpress-develop/pull/3920.

Props: antonvlasenko, bernhard-reiter, costdev, dmsnell, felixarntz, gziolo, hellofromtonya, zieladam, flixos90, ntsekouras, peterwilsoncc, swissspidy, andrewserong, onemaggie, get_dave, aristath, scruffian, justlevine, andraganescu, noisysocks, dlh, soean, cbirdsong, revgeorge, azaozz.
Fixes #57575.

Location:
trunk
Files:
8 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r55143 r55203  
    235235require ABSPATH . WPINC . '/media.php';
    236236require ABSPATH . WPINC . '/http.php';
     237require ABSPATH . WPINC . '/html-api/class-wp-html-attribute-token.php';
     238require ABSPATH . WPINC . '/html-api/class-wp-html-span.php';
     239require ABSPATH . WPINC . '/html-api/class-wp-html-text-replacement.php';
     240require ABSPATH . WPINC . '/html-api/class-wp-html-tag-processor.php';
    237241require ABSPATH . WPINC . '/class-wp-http.php';
    238242require ABSPATH . WPINC . '/class-wp-http-streams.php';
Note: See TracChangeset for help on using the changeset viewer.