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

Class selector missing result when child of <template></template> #57

Open
tomarrell opened this issue Nov 28, 2022 · 0 comments
Open

Comments

@tomarrell
Copy link

tomarrell commented Nov 28, 2022

When attempting to select an element as a child of a <template> tag, htmlq does not return the result.

The following snippet is a minimal reproducible example, and taken from the GitHub home page.

<template>
   <details-dialog>
      <div class="octocat-spinner"></div>
   </details-dialog>
</template>

When attempting to select the .octocat-spinner element, no results are returned. This is also the case when changing the selector and element to use an ID.

$ cat github.com | htmlq '.octocat-spinner'

However, when you remove the surrounding template tags, the element is found.

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

No branches or pull requests

1 participant