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

[css-pseudo-4] The browser cannot search the content, is it intentional? #6222

Open
zhangenming opened this issue Apr 17, 2021 · 5 comments
Open

Comments

@zhangenming
Copy link
Contributor

  • please tag the issue title with the spec's shortname, like [css-foo]
    (this is the name from the spec URL, without a level number unless the issue is specific to that level).
    If you're proposing a new feature that doesn't obviously fit in an existing spec, skip this part — don't make something up.

  • please be specific (in the title and issue) about what you want to change:
    “make it better” means different things to different people!
    image

  • please link to the spec section you're talking about, or at least the spec

@fantasai
Copy link
Collaborator

sigh No, it's not intentional. Generated content is supposed to be searchable, but it doesn't work properly in Chrome and Safari. Firefox gets this right, though. We could maybe change the spec generator to include the labels inline, but it would be better if browsers just fixed this. :) CC @chrishtr @tabatkins

@chrishtr
Copy link
Contributor

I filed crbug.com/1222857 and will follow up.

@emilio
Copy link
Collaborator

emilio commented Jun 23, 2021

Fwiw Firefox does this since https://bugzilla.mozilla.org/show_bug.cgi?id=1627643

@jyasskin
Copy link
Member

jyasskin commented Nov 9, 2022

@emilio Are you sure this works in Firefox? Searching for "<meta>" in https://wicg.github.io/client-hints-infrastructure/#delegate-ch-algo (from the bikeshed bug) doesn't find anything. Searching for "<" does find the generated content, but that's not useful without including its surroundings.

@emilio
Copy link
Collaborator

emilio commented Nov 24, 2022

@jyasskin the fact that we can't create a selection spanning pseudo and non-pseudo content is a known issue. The current thing is useful tho, see OP for a case which does work in Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants