Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

prettify + xhtml + lang-xml causes exception in firefox #108

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 3 comments
Closed

prettify + xhtml + lang-xml causes exception in firefox #108

GoogleCodeExporter opened this issue Apr 22, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Set document type etc to XHTML
2. Include a block with prettyprint and lang-xml
3. Load in Firefox

See attached file (expects prettify.js to be relative at src/
prettify.js).  Note the document is valid according to the W3C tool.

What is the expected output?  What do you see instead?

Expect to see syntax-highlighted block.  Instead, with the Error Console 
open, see the Exception:

Error: uncaught exception: [Exception... "Component returned failure code: 
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML]"  
nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame :: 
file:///foo/prettify-bug/src/prettify.js :: o :: line 46"  data: no]

Versions:

prettify-small-3-Dec-2009
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1.7) 
Gecko/20091221 Firefox/3.5.7

Doesn't seem to depend on the actual content of the prettyprinted block, 
but works fine with other language types, and works fine without the 
DOCTYPE.

Original issue reported on code.google.com by sca...@gmail.com on 18 Jan 2010 at 1:05

Attachments:

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants