On Fri Jan 6 17:08:20 2023 +0000, Santino Mazza wrote:
Oh, I used casting because in HTMLDocument3_createDocumentFragment it uses casting for passing nsIDOMDocumentFragment to create_document_fragment as nsIDOMNode
Yeah, I know it "works", it's just fragile and some would say ugly. :D
Down-casting in contrast is totally fine, since it inherits from nsIDOMNode. But the other way around isn't.