On Thu Aug 11 18:57:06 2022 +0000, Jacek Caban wrote:
I don't know why you need this, but general plan is to get rid of HTMLDocument struct and have HTMLDocumentNode and HTMLDocumentObj entirely separated. I did some work on this in the past, but I never had time to finish it. It's probably better to change whatever code needs this change to not use that pointer at all.
I'll later need to access the dispex itself e.g. for jscript proxy forwarding, but won't be very soon, so I can drop this patch for now, and keep it for later if still needed.
I sent it now because I just thought it's more along the lines of "general improvement" to store the actual object pointer since we know it's always the same type in this case. But no problem dropping if you still don't want it.
(personally, when I read code, for me storing an interface is *usually* more akin to meaning something like "might have different types of objects implementing same interface").