Re:Laconic: A Sane Method of Generating DOM Content in JavaS...
by joestelmach on Thursday April 26, 2012 @12:21AM
(#3892396)
While I don't entirely agree with your first statement, you could just grab the outerHTML instead of appending the element directly to the DOM:
[ Parent
| on HN ]
Re:Laconic: A Sane Method of Generating DOM Content in JavaS...
by aneth on Thursday April 26, 2012 @12:24AM
(#3892415)
Seems like a reasonable solution.
My first statement was certainly true in the previous generation of browsers, including IE 7. I'm not sure about more modern browsers. What basis do you have for disagreeing?
Refer to:
Re:Laconic: A Sane Method of Generating DOM Content in JavaS...
by joestelmach on Thursday April 26, 2012 @12:35AM
(#3892451)
I'm only disagreeing with the use of the word 'performant', and the popular viewpoint that any solution that isn't as fast as possible can't be labeled as such.