summaryrefslogtreecommitdiffstatshomepage
path: root/src/wp-includes/interactivity-api/class-wp-interactivity-api-directives-processor.php
Commit message (Collapse)AuthorAge
* Docs: Add a few missing `@since` tags.John Blackbourn6 days
| | | | | | See #63166 git-svn-id: https://develop.svn.wordpress.org/trunk@60416 602fd350-edb4-49c9-b593-d223f7449a82
* Interactivity API: Print debug warning when server directives processing ↵Greg Ziółkowski2024-06-04
| | | | | | | | | | | | | encounters errors Aims to improve the developer experience of the Interactivity API server directives processing. Props cbravobernal, jonsurrell, westonruter, darerodz, czapla, gziolo. Fixes #61044. git-svn-id: https://develop.svn.wordpress.org/trunk@58321 602fd350-edb4-49c9-b593-d223f7449a82
* HTML API: Fix token length bug in Tag Processor.Dennis Snell2024-05-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The Tag Processor stores the byte-offsets into its HTML document where the current token starts and ends, and also for every bookmark. In some cases for tags, the end offset has been off by one. In this patch the offset is fixed so that a bookmark always properly refers to the full span of the token it's bookmarking. Also the current token byte offsets are properly recorded. While this is a defect in the Tag Processor, it hasn't been exposed through the public interface and has not affected any of the working of the processor. Only subclasses which rely on the length of a bookmark have been potentially affected, and these are not supported environments in the ongoing work. This fix is important for future work and for ensuring that subclasses performing custom behaviors remain as reliable as the public interface. Developed in https://github.com/WordPress/wordpress-develop/pull/6625 Discussed in https://core.trac.wordpress.org/ticket/61301 Props dmsnell, gziolo, jonsurrell, westonruter. Fixes #61301. git-svn-id: https://develop.svn.wordpress.org/trunk@58233 602fd350-edb4-49c9-b593-d223f7449a82
* Interactivity API: Skip instead of bail out if HTML contains `SVG` or `MATH`.Pascal Birchler2024-02-17
| | | | | | | | | Addresses an issue with server-side processing of directives when there is e.g. an SVG icon a navigation menu. Props cbravobernal, westonruter, dmsnell, swissspidy. Fixes #60517. git-svn-id: https://develop.svn.wordpress.org/trunk@57649 602fd350-edb4-49c9-b593-d223f7449a82
* Interactivity API: Integrate Server Directive ProcessingGreg Ziółkowski2024-02-08
The Interactivity API enables WordPress developers to create dynamic and interactive web experiences with ease using a set of special HTML attributes called directives. Please refer to the [Interactivity API proposal](https://make.wordpress.org/core/2023/03/30/proposal-the-interactivity-api-a-better-developer-experience-in-building-interactive-blocks/) for further details. It syncs the changes from the Gutenberg plugin: https://github.com/WordPress/gutenberg/pull/58066. Fixes #60356. Props luisherranz, jonsurrell, swissspidy, westonruter, gziolo. git-svn-id: https://develop.svn.wordpress.org/trunk@57563 602fd350-edb4-49c9-b593-d223f7449a82