On 3/6/14 4:53 PM, Keegan McAllister wrote:
but can this happen with innerHTML?
InnerHTML won't run any scripts per se, but will trigger mutation observers before returning, as well as custom element constructors and so forth...
Another thing I would like to understand is how real sites use document.write()
Mostly for ads. But there are some things that write out entire documents in frames...
We don't have hard data, though.
especially cases which are performance-sensitive.
The main performance constraint with document.write() is its interaction with the preloader, I suspect.
It seems like such an obviously bad API compared to DOM manipulation
It's actually not, within its limits. -Boris _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo