Skip to main content

Bug Tracker

Side navigation

#6733 closed enhancement (fixed)

Opened June 28, 2010 12:59PM UTC

Closed September 28, 2010 10:01PM UTC

make html(fn) use innerHTML if possible

Reported by: ehynds Owned by:
Priority: undecided Milestone: 1.4.3
Component: manipulation Version: 1.4.2
Keywords: html, innerhtml Cc:
Blocked by: Blocking:
Description

For function values passed to html(), the result of the function could be passed through innerHTML first instead of immediately calling empty().append(). performance++

proposed commit @ http://github.com/ehynds/jquery/commit/87feec0b43ec37888169c218d6936e99dfb3157e

Attachments (0)
Change History (2)

Changed August 11, 2010 02:30AM UTC by dmethvin comment:1

If this was done, it would make more sense to remove the old parameter since the function could see the existing html. See the discussion at the commit linked above.

Changed September 28, 2010 10:01PM UTC by john comment:2

priority: → undecided
resolution: → fixed
status: newclosed