From: Ryosuke Niwa [] 

> Shouldn't we throw in this case because the concert type of "somename" is 
> HTMLUnknownElement?

Yes, that's exactly the current design. Hidden a bit:

This still leaves the potential hazard of someone doing `new 
HTMLUnknownElement("somename")` and their code breaking later once "someone" 
becomes a real tag... hopefully the "Unknown" is a bit more of a deterrent 

(It'd be nice if HTMLElement weren't a global and you had to do `import 
HTMLElement from "html/parser-internals"` or something. Ah well.)

Reply via email to