Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

CSS Selector Transforms. Allow "#foo [attribte-]" #1030

Closed
pcetsogtoo opened this Issue Jun 5, 2011 · 3 comments

Comments

Projects
None yet
3 participants

With "#foo [attribute+]" selector we are able to append values to an attribute.
Just like that with "#foo [attribute-]" remove value from an attribute.

Example:
1.
HTML:
Lift code: ".foo [class-]" #> "andOther"
Result:

HTML:
Lift code: "#myElem [class-]" #> "foo"
Result:

HTML:
Lift code: "#myElem [class-]" #> "nonExistedClass"
Result:

Thanks so much

Owner

dpp commented Aug 25, 2011

Cannot use [class-] because the - is a valid character for an attribute value, but can use [class!]

Owner

dpp commented Aug 26, 2011

(In [[r:b0b74787772a166417bbdd0998cea2c53146f68e]]) Closes #1030. Ability to remove attributes or individual parts of a class attribute in CSS Selector Transforms

Branch: master

@ghost ghost assigned dpp Mar 1, 2012

@etorreborre etorreborre pushed a commit to etorreborre/framework that referenced this issue Dec 3, 2014

@dpp dpp Closes #1030. Ability to remove attributes or individual parts of a c…
…lass attribute in CSS Selector Transforms
b0b7478

This issue was closed.

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