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

Shadow DOM: Stop callbacks from inside an open shadow tree #438

Closed
wants to merge 2 commits into from
Closed

Shadow DOM: Stop callbacks from inside an open shadow tree #438

wants to merge 2 commits into from

Conversation

kleinfreund
Copy link
Contributor

This pull request:

Important note: The tests pass when opening tests/mousetrap.html in a browser, but not when running npm test. This is due to the test environment not understanding Element.attachShadow; hence, it is throwing on the lines with the call to attachShadow in the test file. I’m not quite sure how to make these tests work with mocha.

@kleinfreund
Copy link
Contributor Author

@ccampbell Are you interested in continueing with this or should it just be closed?

@ccampbell
Copy link
Owner

Hi @kleinfreund,

I am not opposed to this change. The problem is more that I don’t have time to actively maintain this project.

The truth is I don’t have a lot of familiarity with Shadow DOM, and I don’t like the idea of breaking the tests.

If you can figure out a way to get the tests to pass then I’d be happy to merge this.

@kleinfreund
Copy link
Contributor Author

@ccampbell I understand.

I find it very hard to work with the current test suite. I tried adding the shadydom polyfill to the test file. This makes the new tests pass but breaks others (only in the 'wrapping a specific element' category). I have no idea why because they’re unrelated.

The test suite itself isn’t of much help as the only error reporting I get is this:

  1) Mouestrap.addKeycodes
       should properly recognize non-default mapping:
     Uncaught 

I don’t know what’s "Uncaught" or where to start looking. I don’t know how to continue with this. :/

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.

Stop events occuring in input fields when using a shadow DOM
2 participants