Complex selectors breaking .parents() method
|Reported by:||eduardo||Owned by:||flesler|
Description (last modified by joern)
If you try to do:
this query should returns 0 elements, but this returns the <html> node.
I found probably a bug on multiFilter method on core, the regex is breaking some selectors.
old regex: expr = f.t.replace(/^\s*,\s*/, "" );
fix for this bug: expr = f.t.replace(/^\s*,?\s*/, "" );
I write a selector test case, and after this change all selectors has passed.
Anyone can confirm is it okay?
Change History (6)
comment:3 Changed 9 years ago by flesler
- Component changed from core to selector
- need changed from Review to Patch