-
Notifications
You must be signed in to change notification settings - Fork 82
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
Forked domtokenlist #147
Comments
yes. The tests (using intern) require AMD. The build (using browserify) requires CommonJS. Until there is a decent support for ES6 modules in a test framework like Intern, I fear I'm stuck with this module mess.
interesting.
My code already landed in the original project, but was reverted before they released 1.2.0. Because of that I kept the fork alive. As I was generally unhappy with domtokenlist-shim, I went ahead and implemented my own tokenlist. However, I did not want to just swap the implementations, without making use of the additional functionality my own implementation. The domtokenlist-shim is currently only loaded in focus-source.js and focus-within. We currently only need It is entirely possible to drop the polyfill altogether and use one of the older approaches to this (i.e. do the string manipulation ourselves). I believe this would be the best course of action for now. Are you using the bundle or individual modules? Maybe it would make sense to publish the bundle separately without dependencies, as they're already included anyway. That doesn't help if you're using individual modules, though… |
Okay that's understandable. Right now we are not using the bundle. /**
* Allow to distinguish between tab and mouse focus interactions
* @see http://allyjs.io/api/style/focus-source.html
*
* Usage:
* ```css
* [data-focus-source='key'] :focus {
* background: orange;
* }
* ```
*/
const focusSource = <() => any> require('ally.js/style/focus-source.js');
module.exports = focusSource(); |
Does that mean you were able to work around the problem? |
Only during development as |
If you like I can prepare a pull request which uses string methods to add/remove the classes |
#148 is now ready for review |
Merged! Thanks for your efforts! :) I imagine you'd like a new release asap. As I'm still not in a position to release the other changes in master, I'll have to create another release based off You mentioned somewhere that you weren't able to run the tests locally. What was the problem? |
Your contribution is now known as release 1.2.0 - Adios DOMTokenList - thank you for your efforts! :) |
regarding your ability to run tests…
|
Thanks for the release 🎉🎉🎉 Moved the local testing problems into a new issue: #149 |
I don't understand why the domtokenlist is a fork.
Do you really need the UMD handling?
https://github.com/jwilsson/domtokenlist/compare/master...rodneyrehm:4ccd85f5662e674bd9a7d1a9e121eb49de42a14a?expand=1
We got some firewall issues which do not allow to install directly from github.
Do you think we can get your fork merged and use npm again?
The text was updated successfully, but these errors were encountered: