What steps will reproduce the problem? 1. Use JQuery.Rule 1.0.1/1.0.1.1 2. Add a @font-face CSS3 rule, amongst other CSS rules (e.g. '.cell') 3. perform a rule query, e.g. $.rule('.cell').css('width', cellW+'px');
What is the expected output? What do you see instead? Query should work but line 158 of the jquery 1.0.1.1(correction from 1.0.1 as mentionned in Issue 7, code of 1.0.1 is same) returns 'this.selectorText undefined' (rule 'filter' function). This is because @font-face doesn't define a selectorText in DOM.
What version of the product are you using? On what operating system? jquery 1.0.1.1(correction from 1.0.1 as mentionned in Issue 7, code of 1.0.1 is same). Using Firefox 4 beta 10 (for the @font-face support)
Please provide any additional information below. For now I replaced the original code by "(this.selectorText) ? this.selectorText.toLowerCase().split(/\s*,\s*/) : ''" but there shall be a better solution(?)
Comment #1
Posted on Feb 7, 2011 by Swift GiraffeFixed it on 1.0.2, thanks for reporting
Status: Fixed
Labels:
Type-Defect
Priority-Medium