Parsing "data-*" attributes #59532
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Block Validation/Deprecation
Handling block validation to determine accuracy and deprecation
[Status] Needs More Info
Follow-up required in order to be actionable.
[Status] Stale
Gives the original author opportunity to update before closing. Can be reopened as needed.
[Type] Bug
An existing feature does not function as intended
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: