Currently when using document.createElement("div") it creates instance of Element class where tag name equals "div".
However Linkedom has all these https://github.com/WebReflection/linkedom/tree/main/esm/html derived types defined in the library but they are not actually used when creating instances of html nodes through JS API.
This feature should make following code pass
var dom = document.createElement("div");
expect(dom instanceof HTMLDivElement).toEqual(true);
Currently when using
document.createElement("div")
it creates instance ofElement
class where tag name equals "div". However Linkedom has all these https://github.com/WebReflection/linkedom/tree/main/esm/html derived types defined in the library but they are not actually used when creating instances of html nodes through JS API.This feature should make following code pass