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
"org.w3c.dom.mathml".
]]
http://www.w3.org/TR/2001/REC-MathML2-20010221/chapter8.html#N41540

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.

Philippe
Received on Tuesday, 19 February 2002 19:01:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:55 GMT