tmpvar/jsdom — pull request #546 by web-ninja (2012-12-18 23:07:39+00:00)
Title: Document write fix

Adapted from PR #489, to include regression testing as well as some modification to retain behavior during "loading" readyState, in the event that document.write() is somehow not within a script tag.