-
8 Oct 2012 1:58 PM #1
Answered: Ext.DomQuery.compile doesn't handle multiple attributes
Answered: Ext.DomQuery.compile doesn't handle multiple attributes
This works:
But this doesn't:Code:Ext.DomQuery.compile('node[@attr1="value1"]')
Code:Ext.DomQuery.compile('node[@attr1="value1" and @attr2="value2"]')
-
Best Answer Posted by evant
See: http://www.w3.org/TR/selectors/#attribute-selectors
Specifically:
Multiple attribute selectors can be used to represent several attributes of an element, or several conditions on the same attribute. Here, the selector represents a span element whose hello attribute has exactly the value "Cleveland" and whose goodbye attribute has exactly the value "Columbus":
span[hello="Cleveland"][goodbye="Columbus"]
-
8 Oct 2012 3:00 PM #2Sencha - Ext JS Dev Team
- Join Date
- Apr 2007
- Location
- Sydney, Australia
- Posts
- 15,091
- Vote Rating
- 97
- Answers
- 169
See: http://www.w3.org/TR/selectors/#attribute-selectors
Specifically:
Multiple attribute selectors can be used to represent several attributes of an element, or several conditions on the same attribute. Here, the selector represents a span element whose hello attribute has exactly the value "Cleveland" and whose goodbye attribute has exactly the value "Columbus":
span[hello="Cleveland"][goodbye="Columbus"]Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
9 Oct 2012 3:32 AM #3


Reply With Quote