Opened 14 years ago
Closed 14 years ago
#5293 closed enhancement (fixed)
createElement optimization should allow for tag pair as well as quick-closed tag
Reported by: | kswedberg | Owned by: | flesler |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | core | Version: | 1.3.2 |
Keywords: | Cc: | kswedberg | |
Blocked by: | Blocking: |
Description
To take advantage of the document.createElement optimization when a tag pair such as '<span></span>' (as well as a self-closed tag) is passed into the jQuery() function, we can change line 35 of core.js (Rev. 6582) from this:
rsingleTag = /<(\w+)\s*\/?>$/,
to this:
rsingleTag = /<(\w+)\s*\/?>(?:<\/\1>)?$/,
Thanks, John, for the regex improvements!
Change History (3)
comment:1 Changed 14 years ago by
Type: | bug → enhancement |
---|
comment:2 Changed 14 years ago by
Cc: | kswedberg added |
---|---|
need: | Review → Patch |
Owner: | set to flesler |
Status: | new → assigned |
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
I'm accepting the ticket so it won't get lost in the pile. I'll try to do this asap.