offsetWidth was undefined in the xmldom and jsdom, so tried ownerDocument ... in the end the reason for this change was to call render in jasmine-node which we turned off instead.