Skip to content

Conversation

@adamziel
Copy link
Collaborator

@adamziel adamziel commented Oct 28, 2024

A part of #1894. Follows up on #1893.

This PR brings in a few more PHP APIs that were initially explored outside of Playground so that they can be incubated in Playground. See the linked descriptions for more details about each API:

Testing instructions

  • Confirm the PHPUnit tests pass in CI
  • Confirm the test suite looks reasonabel
  • That's it for now! It's all new code that's not actually used anywhere in Playground yet. I just want to merge it to keep iterating and improving.

Base automatically changed from data-liberation-bring-in-php-parsers to trunk October 28, 2024 23:14
@adamziel adamziel marked this pull request as ready for review October 28, 2024 23:29
@adamziel adamziel requested a review from a team as a code owner October 28, 2024 23:29
@adamziel adamziel merged commit 4ecf6cc into trunk Oct 28, 2024
10 checks passed
@adamziel adamziel deleted the data-liberation-xml-parsers branch October 28, 2024 23:31
* // <wp:content id="test-4" class=outline title="data:text/plain;base64=asdk3nk1j3fo8">
* // ^ parsing will continue from this point.
* $this->attributes = array(
* 'id' => new WP_HTML_Attribute_Token( 'id', 9, 6, 5, 11, false )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's interesting to find WP_HTML_Attribute_Token used in the XML tag processor, but I guess the concepts are the same or nearly the same structurally.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! But we could also create XML-specific flavors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants