PassMark Logo
Home » Forum


No announcement yet.

Problems with search.xhtml, MathML, javascript and ZoomSearch

  • Filter
  • Time
  • Show
Clear All
new posts

  • Problems with search.xhtml, MathML, javascript and ZoomSearch


    we are using the ZoomSearch for our CD-Project with mathematical content. Therefore we need MathML to display formulars, also in some title-tags.

    To display the MathML-formulars in the search-results, we need the application/xhtml+xml-Modus. In firefox this modus will be activated by ending the search-Site with .xhtml.

    But this will produce this js-failure:

    Fehler: uncaught exception: [Exception... "Object cannot be created in this context" code: "9" nsresult: "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTED_ERR)" location: "../search/search.js Line: 29"]

    Could you tell me, how to solve this problem?

    Greetings from Germany,
    Thomas Wassong

  • #2
    It seems Firefox renders XHTML as XML in this scenario. And in the Firefox XML parser, several critical bits of Javascript are missing. (You would get similar errors if you renamed our search.html file to search.xml).

    Doing some reading on the web, there is some talk that the FireFox people might fix this, but who really knows.

    It seems there is a work around. Declaring the document DOCTYPE to be content-type: application/xhtml, instead of content-type: application/xhtml+xml, seems to force Firefox to use it's HTML parser. But I don't know what impact this will have on your MathML stuff.