Questions tagged [sizzle]

Sizzle is a JavaScript CSS selector engine.

Sizzle is a pure-JavaScript CSS selector engine. CSS 3 selectors are supported, plus an additional set of custom selectors.

Resources

165 questions
3
votes
1 answer

How to fix the jQuery 1.8 “unsupported pseudo” error?

A plugin I’m using relies on $(':animated'), but since I upgraded to jQuery 1.8.0 this throws an error: Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: animated Did jQuery 1.8.0 drop support for this custom selector as…
Mathias Bynens
  • 144,855
  • 52
  • 216
  • 248
2
votes
5 answers

jQuery selector bug? composed selector vs. simple selector & find()

Something is very awkward about my situation... i have something like this:
if I use $("#selector input[type=radio]") all three elements are…
Dan
  • 9,912
  • 18
  • 49
  • 70
2
votes
2 answers

Raphaël and selecting many elements

I need to put on the page a few spinners, which are generated by Raphaël. But I can create only one spinner, because Raphaël select elements by id. How I can select many elements for example, by classes? I try use jQuery: var spinners =…
inetbug
  • 409
  • 6
  • 16
2
votes
3 answers

replace dojo.query with Sizzle?

Dojo has got the slowest selectors compared to other JS frameworks. I was wondering if it was possible to use Sizzle within Dojo to make dojo.query use it behind the scenes? I think it is used in jQuery that way, so it should be possible in Dojo…
Oleg Mikheev
  • 17,186
  • 14
  • 73
  • 95
2
votes
2 answers

How to select table cells without selecting nested table cells in jQuery

I want to select only the first level of 'td' elements in a table and not the cells of any nested tables. eg:
--this one --this one …
missaghi
  • 5,044
  • 2
  • 33
  • 43
2
votes
1 answer

Puppeteer js query and click a link inside of a td where td id contains

I have to get the following selector. There's several of them:
FabricioG
  • 3,107
  • 6
  • 35
  • 74
2
votes
1 answer

How do I extend jQuery's selector engine to warn me when a selector is not found?

Say I make a mistake when I'm trying to find an element and I make a typo, like $('lsdkfj'). Instead of jQuery returning me an empty array, I'd like to return an error message in the console, like "The selector 'lsdkfj' cannot be found". What is the…
Dr. Frankenstein
  • 4,634
  • 7
  • 33
  • 48
2
votes
0 answers

How to override Sizzle()

Having problem overriding Sizzle() We encountered "SCRIPT70: Permission denied" exception in IE apparently, our fix is to hack our current version of jquery however we dont want to modify original Sizzle() (function ($) { $.fn.Sizzle =…
2
votes
2 answers

Select a tag with a unicode char in its id

In HTML 5, unicode characters are allowed in a tag's id attribute. And the Sizzle library used by jQuery claims to have full unicode support. My HTML file includes:

Hello

and doing this returns an empty array: $('§') Why doesn't…
Garrett
  • 4,007
  • 2
  • 41
  • 59
2
votes
1 answer

Can't iterate array returned from Sizzle

From my understanding Sizzle returns an array of objects (DOMElements), I am trying to walk that array of objects in a for loop but I am getting errors. When I try to get a property with the obj[index-number]["property"] it works fine, but when I…
John
  • 1,530
  • 1
  • 10
  • 19
2
votes
2 answers

What jQuery selector can I use to match these HTML elements (requires ":contains()")?

I'm trying to find a jQuery selector that will match only the element that directly contains the text "PDT" in the following two examples (truncated for brevity):

(07-27) 21:28 PDT SAN FRANCISCO -- San Francisco …

Bungle
  • 19,392
  • 24
  • 79
  • 106
2
votes
1 answer

Sizzle as a function in object

I have JavaScript code with object like: var myObj = { SomeVal: 1, Sizzle: function(){ //sizzle } }; How can I include Sizzle selector engine as an function in object? In Sizzle source code I found a function Sizzle, but source…
2
votes
0 answers

Going to do (simple) change in local copy of jquery. Please suggest if any drawbacks are possible

I writing a html page that should "run" in quite special environment (have some limitations that is not present in regular browser). Need to say that environment is based on version of IE that is currently available in OS. Also I have to support…
ZuBB
  • 124
  • 2
  • 8
2
votes
1 answer

Accessing iframe injected by chrome extension using JQuery

Hi I am creating a chrome extension in which I am injecting iframe into some pages. In the iframe's onload function I am trying to access elements inside iframe using Jquery. $("#divInside-iframe",iframeDocument) While trying to do so I get an…
Viral Shah
  • 47
  • 5
2
votes
4 answers

Is there a JQuery DOM manipulator/CSS selector equivalent class in PHP?

I know that I can use DOMDocument and DOMXPath to manipulate XML files. But, I really love JQuery, and it would be great if there was something more like JQuery in the PHP world that I could use for sever side DOM manipulation. NOTE: I'm only…
dkinzer
  • 32,179
  • 12
  • 66
  • 85