Hyphen in CSS class is interpreted as word boundary #1

Closed
EarMaster opened this Issue Mar 26, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Owner

EarMaster commented Mar 26, 2012

If you use hyphens in your CSS class names CSSClass interprets this as a word boundary and toggles also parts of this class.

var element = document.createElement('div');
element.addClass('demo-test').removeClass('demo');

This element has the class name "-test" which is an error as this should still be "demo-test".

EarMaster was assigned Mar 26, 2012

@CasualSuperman CasualSuperman added a commit to CasualSuperman/CSSClass that referenced this issue Apr 17, 2012

@CasualSuperman CasualSuperman Fixes Issue #1. 57c92f5

@CasualSuperman CasualSuperman added a commit to CasualSuperman/CSSClass that referenced this issue Apr 17, 2012

@CasualSuperman CasualSuperman Fixed Issue #1. 644b650

EarMaster closed this Apr 17, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment