-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The constructor should be exposed #5
Comments
I gave some thoughts about it when I did the PR, and as |
What do you mean? |
Oh, I see, the constructor wasn't implemented correctly. Well, that seems like a bug... |
when the browser does not support not sure if a solution like this is really profitable for older browsers. |
Dominic, can you point me to any documentation about the Elements constructor? It looks like you are wanting different behavior than the Array constructor anyway, like flattening array-like arguments. |
No, it just inherits the Array constructor. |
That way you can do things like
new Elements(document.query('#a'), document.query('#b')).queryAll('.c')
. Similar to jQuery's$('#a').add($('#b')).find('.c')
. Basically any situation where you might programmatically construct a set of elements.The text was updated successfully, but these errors were encountered: