[wp-trac] [WordPress Trac] #62653: Add CSS selector based tag navigation to HTML and Tag Processors
WordPress Trac
noreply at wordpress.org
Thu Dec 12 12:09:33 UTC 2024
#62653: Add CSS selector based tag navigation to HTML and Tag Processors
--------------------------------------+------------------------------
Reporter: jonsurrell | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTML API | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by jonsurrell):
I searched for selectors in Gutenberg block library
[https://github.com/WordPress/gutenberg/commit/b1d943f027532a9e83b2739930d218c67f7f930d
at commit b1d943f] and came up with this list of the selectors used:
{{{
.blocks-gallery-caption
.blocks-gallery-item
.blocks-gallery-item__caption
.wp-block-form-input__input
.wp-block-form-input__label-content
a
a:not([download])
a[download]
audio
blockquote
cite
div.wp-block-gallery figure.blocks-gallery-image img
figcaption
figure > a
figure a
figure img
figure video,figure img
figure
footer
h1,h2,h3,h4,h5,h6
h2
hr
img
input
ol,ul
p
pre
table
tbody tr
td,th
tfoot tr
thead tr
ul.wp-block-gallery .blocks-gallery-item
}}}
[https://github.com/WordPress/wordpress-develop/pull/7857 The
implementation proposed in PR7857] \\does not support\\ the following
selectors from that list:
- `a:not([download])` (pseudo-class `:not()` unsupported)
- `div.wp-block-gallery figure.blocks-gallery-image img` (use of class
selectors in non-final position)
- `ul.wp-block-gallery .blocks-gallery-item` (use of class selectors in
non-final position)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62653#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list