ember-fastboot / simple-dom

208 stars 33 forks source link

HTMLSerializer should not serialize a node's siblings #14

Closed gpoitch closed 9 years ago

gpoitch commented 9 years ago

Currently, if I create a new Element and serialize it, I get it's siblings too.

var documentElement = new Element('html');
var head = new Element('head');
var body = new Element('body');
documentElement.appendChild(head);
documentElement.appendChild(body);

new HTMLSerializer.serialize(head); // => <head><head><body></body>
krisselden commented 9 years ago

tests too please

gpoitch commented 9 years ago

@krisselden good to go