[wp-trac] [WordPress Trac] #62686: Support for data-* attributes in Gutenberg blocks
WordPress Trac
noreply at wordpress.org
Thu Dec 12 21:18:05 UTC 2024
#62686: Support for data-* attributes in Gutenberg blocks
-------------------------------------------------+-------------------------
Reporter: tunyk | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Editor | Version:
Severity: normal | Keywords:
Focuses: ui, administration, template, |
performance, coding-standards |
-------------------------------------------------+-------------------------
Add support for data-* attributes in Gutenberg blocks. Currently, adding
data-* attributes to any element via the code editor results in an error
message saying “Block contains unexpected or invalid content”.
data-* attributes are needed by thousands of websites because they help
them leverage hundreds of features and design changes.
One small example. Using the data-nosnippet HTML attribute in Google’s
recommendations for hiding elements in search engine results (SEO)
https://developers.google.com/search/docs/crawling-indexing/robots-meta-
tag#data-nosnippet-attr
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62686>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list