Side navigation
#5293 closed enhancement (fixed)
Opened September 25, 2009 06:24PM UTC
Closed November 11, 2009 06:49PM UTC
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!
Attachments (0)
Change History (3)
Changed September 25, 2009 06:27PM UTC by comment:1
type: | bug → enhancement |
---|
Changed September 28, 2009 02:53PM UTC by comment:2
cc: | → kswedberg |
---|---|
need: | Review → Patch |
owner: | → flesler |
status: | new → assigned |
I'm accepting the ticket so it won't get lost in the pile.
I'll try to do this asap.
Changed November 11, 2009 06:49PM UTC by comment:3
resolution: | → fixed |
---|---|
status: | assigned → closed |