Skip to content
Browse files

Added title element to default document

  • Loading branch information...
1 parent 59d671a commit 2e3e0f9891b38bedd31a57ebe174b8e1b1bcbaa3 @davglass davglass committed Jan 6, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/yui3-dom.js
View
2 lib/yui3-dom.js
@@ -22,6 +22,8 @@ YUI.add('nodejs-dom', function(Y) {
browser.window = jsdom.jsdom('', null, {features: features}).createWindow();
browser.document = browser.window.document;
+ browser.document.getElementsByTagName('head').item(0).appendChild(browser.document.createElement('title'));
+
browser.document.scrollTop = browser.document.documentElement.scrollTop = browser.document.body.scrollTop = 0;
browser.document.scrollLeft = browser.document.documentElement.scrollLeft = browser.document.body.scrollLeft = 0;

0 comments on commit 2e3e0f9

Please sign in to comment.
Something went wrong with that request. Please try again.