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

Add 'children' and 'node' attribute sources #10

Merged
merged 8 commits into from
Mar 9, 2023

Conversation

alecgeatches
Copy link
Contributor

Description

The children and node attribute sources were removed from core usage in 2018 and replaced with html, but were not officially deprecated until 2022. Gutenberg blocks using these attributes still exist in some examples and should be supported.

Due to differences in how PHP's DOMDocument and the JS DOM treat text nodes, there may be some changes in the output of node and children attributes between the block JS implementation and the content API. If users of the API encounter problems using either of these, we can reevaluate how they're processed. For now, they should work in simple cases.

@alecgeatches alecgeatches requested a review from a team as a code owner March 9, 2023 04:42
@alecgeatches alecgeatches self-assigned this Mar 9, 2023
@alecgeatches alecgeatches merged commit 21afa2b into trunk Mar 9, 2023
@alecgeatches alecgeatches deleted the add/node-children-attribute-sources branch March 9, 2023 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant