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

Add support for ShadowRoot DOM api feature detect #2475

Merged
merged 1 commit into from
Oct 5, 2019

Conversation

pascalim
Copy link
Contributor

@pascalim pascalim commented Oct 3, 2019

Add support for ShadowRoot DOM api feature detect through shadowroot and shadowroot-legacy tests

@rejas
Copy link
Member

rejas commented Oct 3, 2019

Thx for the PR. But it test for both the old and the newer ShadowDom Api. The first check is against the deprecated call: https://caniuse.com/#feat=mdn-api_element_createshadowroot
while the later is the favored modern one.
Therefor I guess the test should be split into two, what dou you think?

@pascalim
Copy link
Contributor Author

pascalim commented Oct 3, 2019

Good eye, yep sounds good, updated PR with shadowroot and shadowroot-legacy tests

@rejas
Copy link
Member

rejas commented Oct 3, 2019

Tests are failing, did you notice? Please fix that first :-)

@pascalim
Copy link
Contributor Author

pascalim commented Oct 3, 2019

@rejas it's a case of me not reading the documentation first :p Ok refactored the tests and it seems to appease the test runners

feature-detects/dom/shadowroot.js Outdated Show resolved Hide resolved
feature-detects/dom/shadowroot.js Outdated Show resolved Hide resolved
feature-detects/dom/shadowroot.js Outdated Show resolved Hide resolved
…` and `shadowroot-legacy`

Co-authored-by: Kevin Coyle <kevin.coyle@theuniprogroup.com>
@pascalim
Copy link
Contributor Author

pascalim commented Oct 5, 2019

PR updated with requested changes

@pascalim pascalim requested a review from rejas October 5, 2019 17:01
@rejas rejas merged commit d11cd99 into Modernizr:master Oct 5, 2019
@rejas
Copy link
Member

rejas commented Oct 5, 2019

thx a lot! good job!

@pascalim pascalim deleted the dom-shadowroot branch October 7, 2019 06:43
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

Successfully merging this pull request may close these issues.

2 participants