Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6733 closed enhancement (fixed)

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:


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

Change History (2)

comment:1 Changed 13 years ago by dmethvin

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.

comment:2 Changed 13 years ago by john

Priority: undecided
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.