[XML-SIG] 4DOM HTML erroneously using NS methods

Martin v. Loewis martin@v.loewis.de
Sun, 20 Jan 2002 11:45:45 +0100

> why ? Doesn't HTMLDocument inherit from the standard DOM level 2 Document?

In DOM Level 2 HTML, it does indeed.

>  Originally, I made the change in Sgmlop to be able to give to Sgmlop a
> pDomlette document (which doesn't implement the non NS methods).
>  Then I have overridden the createElementNS method in HTMLDocument to
> delegate in the same manner as createElement, so I don't think it break
> the standard HTML DOM behavior if you give to HTMLParser a HTMLDocument.

I recommend to re-read section 1.6.3 of


Attribute and element names should be exposed as uppercase if the
original document was a HTML document, and should be lowercase if the
original document was a XHTML document. I'm not certain whether 4DOM
HTML supports XHTML at all, but in any case, there should be a
strategy how to support both HTML and XHTML.