-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Parsing "data-*" attributes #59532
Comments
Thanks for the report.
Table Block: gutenberg/packages/block-library/src/table/block.json Lines 90 to 94 in 5319e96
GalleryBlock: gutenberg/packages/block-library/src/gallery/block.json Lines 24 to 48 in 5319e96
Could you tell us specifically what kind of errors are logged? |
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks. |
I'll close the issue. @Lovor01, feel free to re-open it with any additional details that can help reproduce the bug. |
Description
It seems that
data-*
attributes are not parsed byhpq
library and consequently not as a block attribute. Given their special nature I can understand that. This is perhaps a known issue, but I want to confirm that.To clarify more, see below:
Step-by-step reproduction instructions
in
blocks.json
, block attribute definitionresult: openSelector attribute is undefined each time and causes
This block contains unexpected or invalid content.
error, since it is not parsed from the block. I use instead openSelector without "source" and "attribute" instead, so it is written in a block comments, but it would be nice to know if this is known and accepted issue, or bug.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: