Bug Tracker

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 kswedberg

Type: bugenhancement

comment:2 Changed 14 years ago by flesler

Cc: kswedberg added
need: ReviewPatch
Owner: set to flesler
Status: newassigned

I'm accepting the ticket so it won't get lost in the pile. I'll try to do this asap.

comment:3 Changed 14 years ago by john

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.