javascript - Failed to execute 'querySelectorAll' on 'Element' in ExtJS 5 -
i trying using ext.dom.query.select
method find divs having class name square , highlightedreactangle.same method working extjs 4
, after grading extjs 5
start throwing error.
uncaught syntaxerror: failed execute 'queryselectorall' on 'element': 'div:any(div.square|div.highlightedreactangle|div.highlightedreactangleie|div.pin|div.redcirclecount|div.stamppreviewcls)' not valid selector.
the statement i'm using find related div is,
this.el.select("div:any(div.square|div.highlightedreactangle|div.highlightedreactangleie|div.pin|div.redcirclecount|div.stamppreviewcls)", true);
what exactely i'm missing ?
what exactely i'm missing ?
from version 5, when select
called on element
(versus explicitly using ext.dom.query.select
), ext js uses native queryselectorall
method requires valid css selectors. error message suggests, selector not valid one.
in version 4, ext js used ext.dom.query.select
processing select
calls on element
s. method more "liberal" queryselectorall
. work in version 5 well, can use:
ext.dom.query.select(your_selector, this.el.dom)
Comments
Post a Comment