Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Update to work with parse5 7.0.0 and css-select 4.3.0 #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MrLittleKitty
Copy link

Summary

This was not working with the latest versions of parse5 and css-select, so I updated it. Changes are below:

  • Updated dependencies to recent versions
  • Updated functions to work with new parse5 typing for TreeAdapter and other type constraints

Testing

Ran the included tests with tape:

C:\Coding\css-select-parse5-adapter\lib\test>node css-select-parse5-adapter.test.js
TAP version 13
# Lets try some selectors
ok 1 simple tag selector
ok 2 attribute selector *=
ok 3 class selector
ok 4 simple descendant combinator selectors
ok 5 attribute selector for class contains ~=

1..5
# tests 5
# pass  5

# ok

I also used this in my own project and confirmed that it worked there.

@google-cla
Copy link

google-cla bot commented Jul 30, 2022

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@MrLittleKitty
Copy link
Author

License agreement signed.

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

Successfully merging this pull request may close these issues.

1 participant