ded/qwery — Issue #60: Unable to select elements by id in custom HTML elements
Author: mkristo
Created: 2011-11-16 10:34:43+00:00
State: open

Hi,

I have found a bug(?) in qwery when trying to select an element when using an custom HTML element as context. I noticed this while porting from Sizzle to qwery. Try the following code to reproduce.

```html

```

I get the following console output (using Chrome):

```
Sizzle #hello [​…​]
Sizzle #world [

​

]
qwery #hello [​…​]
Uncaught TypeError: Object # has no method 'getElementById'
```

As you can see Sizzle is able to handle this, but qwery is unable to select the inner element.