RE: Relation between core DOM and HTML DOM

Just to confirm the impressions I get from this thread:
am I right to assume the the intended behaviour is as
follows:

  Document someXMLDoc = new BasicDocument();
  Element xmlElement = someXMLDoc.createElement("FOO");
  Element htmlLikeElement = someXMLDoc.createElement("TABLE");

  if(xmlElement instanceof HTMLElement)
    // always false

  if(htmlLikeElement instanceof HTMLElement)
    // always false

  HTMLDocument someHTMLDoc = new BasicHTMLDocument();
  Element xmlLikeElement = someHTMLDoc.createElement("FOO");
  Element htmlElement = someHTMLDoc.createElement("TABLE");

  if(xmlLikeElement instanceof HTMLElement)
    // always true

  if(htmlElement instanceof HTMLElement)
    // always true

  if(htmlElement instanceof HTMLTableElement)
    // always true

If this is the intention of the REC (and I hope it is), then
it needs to be spelt out.

Cheers,


Miles

-- 
Miles Sabin                          Cromwell Media
Internet Systems Architect           5/6 Glenthorne Mews
+44 (0)181 410 2230                  London, W6 0LJ
msabin@cromwellmedia.co.uk           England

Received on Wednesday, 14 October 1998 13:28:50 UTC