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
Selector should not retrieve template content #2643
Comments
Parsing the content with
|
Any progress with this issue? |
No progress. This is an issue, and patches for css-select are welcome. |
This was referenced Feb 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The MDN documentation for the
<template>
element specifies that its content is processed, but never rendered. This means that if you try to query the content you should end up with nothing. This behaviour was seemingly broken in rc4.Simple code example:
Whether this is a problem related to
parse5
I don't know yet, the original implementation says that template contents cannot be queried directly but testing in a browser, you can query it as soon as it is added to thebody
and thus rendered.The text was updated successfully, but these errors were encountered: