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
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.