js-fixtures icon indicating copy to clipboard operation
js-fixtures copied to clipboard

Load fixtures.body() as DOM

Open Ryuno-Ki opened this issue 9 years ago • 1 comments

For traversal etc. I think, it would be handy to have the ability to load content as DOM.

Therefore, I extended your API to realise that.

PR coming soon.

Ryuno-Ki avatar May 18 '15 20:05 Ryuno-Ki

See #28.

After walking through the specs, the following code seem to work, too:

fixtures.load('some.html');
var iFrameWindow = fixtures.window();
var content = iFramWindow.document.body.children();

The content variable looks like I would like to have. What about creating a function for it?

Ryuno-Ki avatar May 18 '15 20:05 Ryuno-Ki