W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: Detecting MathML, etc, support using DOM

From: Philippe Le Hegaret <plh@w3.org>
Date: 19 Feb 2002 19:00:57 -0500
To: Zoltan Hawryluk <zhawryluk@corp.attcanada.ca>
Cc: "'www-dom@w3.org'" <www-dom@w3.org>
Message-Id: <1014163257.11965.165.camel@jfouffa>
On Tue, 2002-02-19 at 17:52, Zoltan Hawryluk wrote:
> Hello All,
> I was wondering if there was a way to detect if a browser supports MathML
> (or XSLT, etc) using the DOM.  Anyone have any idea.  I know one can detect
> XML support using the XMLDocument object, but I couldn't see anything
> equivalent for MathML.
How about
Support for the MathML Document Object Model may be queried by calling
the DOMImplementation::hasFeature method with the test string

Given that they don't (forgot to?) provide a version number, using null
or empty string is safe.

You can also use this feature with Node.isSupported.

Received on Tuesday, 19 February 2002 19:01:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:09 UTC