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

I am trying to create a shadowRoot pseudoClass or operator, but nothing works. #61

Closed
FabricioTeran opened this issue Jul 4, 2022 · 2 comments

Comments

@FabricioTeran
Copy link

Trying with this code, but returns a void array:

NW.Dom.registerSelector('shadow', /\:(shadow)/i, (function(global) {
    return function(match, source, mode, callback) {
        source = 'e=e.shadowRoot;' + source;
        return { 'source': source, 'status': true };
    }
})(this));
console.log(NW.Dom.select("body page-1:shadow footer", document));
@FabricioTeran
Copy link
Author

If you can help me would be really helpfull, i don't find any documentation of your api.

@dperini
Copy link
Owner

dperini commented Apr 6, 2023

@FabricioTeran
it seems you are using it correctly.
However if you haven't solved your problem yet I might help on this.
You can write to me directly or we can arrange a chat if you like.

I am now closing this because it's not an issue.

@dperini dperini closed this as completed Apr 6, 2023
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

2 participants