trevmex/EnvJasmine — Issue #18: DOM doesn't seem to be loading...
Author: toddself
Created: 2012-01-30 21:33:35+00:00
State: open

I'm trying to do some testing with appending elements to a DOM.

I edited envjasmine.html to contain a rudimentary skeleton of a webpage (added html, head and body tags), but whenever I try something as simple as:

console.log(document.getElementsByTagName('body')[0].tagName);

I get 'undefined' back.

Is it supposed to load that html file as the page to manipulate? Or how do I give EnvJS a DOM for it to play on?