搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

XLST processing

  • 4 回覆
  • 5 有這個問題
  • 2 次檢視
  • 最近回覆由 fobispo

more options

It seems like firefox is failing to treat the output of an XSLT transformation tagged as HTML, as an HTML document.

I'm attempting to use the google charts API, and I get:

Timestamp: 6/13/12 3:45:41 PM Error: uncaught exception: [Exception... "An attempt was made to use an object that is not, or is no longer, usable" code: "11" nsresult: "0x8053000b (NS_ERROR_DOM_INVALID_STATE_ERR)" location: "https://www.google.com/jsapi Line: 21"]

And it fails to draw any charts on the page. The site works correctly in both Safari and Chrome....

The page that I'm trying to see is an experimental BIND statistics page that I'm building as an in house experiment at ISC. http://polkmn.com:88

It seems like firefox is failing to treat the output of an XSLT transformation tagged as HTML, as an HTML document. I'm attempting to use the google charts API, and I get: Timestamp: 6/13/12 3:45:41 PM Error: uncaught exception: [Exception... "An attempt was made to use an object that is not, or is no longer, usable" code: "11" nsresult: "0x8053000b (NS_ERROR_DOM_INVALID_STATE_ERR)" location: "https://www.google.com/jsapi Line: 21"] And it fails to draw any charts on the page. The site works correctly in both Safari and Chrome.... The page that I'm trying to see is an experimental BIND statistics page that I'm building as an in house experiment at ISC. http://polkmn.com:88

所有回覆 (4)

more options

I see the problem, but I'm no good at reading minified JavaScript code so I can't tell which part of the code is triggering the error.

For what it's worth, the page doesn't work in IE8, either.

more options

I've added a full description of the bug here:

 https://bugzilla.mozilla.org/show_bug.cgi?id=391154

Which was the result of a "fix" of another bug described here:

 https://bugzilla.mozilla.org/show_bug.cgi?id=202765#c41

Basically it has to do with using document.write() in an XSLT generated page..

more options

According to MDN, Firefox doesn't support document.write in formal xhtml, so its unavailability in xhtml generated by xml+xslt turns out to be consistent with that. See https://developer.mozilla.org/en/document.write#Notes.

more options

Well, not quite, I'm not generating XHTML, just plain HTML, I'm using the xsl:output option to tell the browser so..

It works correctly in Chrome and Safari.