philc/vimium — comment on commit f1e92dfe796eb487c9cec41038d8ad7bd99242db
File:  line 0
By int3:

I think it is less elegant because spanWrap() is no longer side-effect-free, plus the whole thing takes up a greater number of lines. The perf looks almost identical when I profile it with Chrome's DevTools, but the testcase on http://www.quirksmode.org/dom/innerhtml.html shows that innerHTML is still significantly faster. Not sure what the cause of the difference is, but I'd like to revert it just to be safe.