Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on W3C, you ignorant slut. Parent comment
to change a nodeName, you have to clone its children and replicate its attributes.
to delete on object,
object.parentNode.removeChild(object);
to insert after an element
object.parentNode.insertBefore(newObject, object.nextSibling);
and that only works by auto'magic' nonsense.
things like jquery would still be around if the browser all implemented everything nicely because the dom api is just terrible
There are no comments on this comment yet.
to change a nodeName, you have to clone its children and replicate its attributes.
to delete on object,
object.parentNode.removeChild(object);
to insert after an element
object.parentNode.insertBefore(newObject, object.nextSibling);
and that only works by auto'magic' nonsense.
things like jquery would still be around if the browser all implemented everything nicely because the dom api is just terrible