Skip to content
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

Let elemens be created using the <tag> syntax #29

Closed
kurtextrem opened this issue Dec 7, 2015 · 1 comment
Closed

Let elemens be created using the <tag> syntax #29

kurtextrem opened this issue Dec 7, 2015 · 1 comment

Comments

@kurtextrem
Copy link
Contributor

jQuery:
$('<div>')

wouldn't sacrifice perf too much if only the first char is checked expr[0] === '<', call create(expr.slice(1, -1)

@LeaVerou
Copy link
Owner

LeaVerou commented Dec 7, 2015

Actually, I think the same function doing completely different things is a bit of a usability problem. This is why there's also a separate $.ready() instead of overloading $() (which I considered for very long).
Not a super strong opinion though. :)
Thanks for posting a suggestion!

@LeaVerou LeaVerou closed this as completed Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants