Sync with http://html5.org/r/8742 (Make use of the DOM spec's 'node document' concept.)