Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data Liberation] Add XML API, Stream API, WXR URL Rewriter API #1952

Merged
merged 36 commits into from
Oct 28, 2024

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
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants