web icon indicating copy to clipboard operation
web copied to clipboard

fix(parse5-utils): add support for templates in `findNode`

Open WillsonSmith opened this issue 1 year ago • 2 comments

What I did

  1. Add a shared helper function for findNode and findNodes to find child nodes within <template> elements
  2. Enable findNode to find children within a <template> element
  3. Add a test for findNode

This expands on #2398 which added this functionality to findNodes.

WillsonSmith avatar Jun 07 '24 21:06 WillsonSmith

🦋 Changeset detected

Latest commit: 87afd9af92d53a45bee74c28f4bf4c93383bbce3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@web/parse5-utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jun 07 '24 21:06 changeset-bot[bot]

Always happy to contribute, thanks for taking the time to review this! 😄

WillsonSmith avatar Jul 08 '24 00:07 WillsonSmith