This tests calls to setInnerHTML, setInnerText, and setOuterHTML to see what kind of DOM modifications they cause. The calls are optimized to not do any work in cases where the DOM would not change at all.