Opened 9 years ago

Closed 7 years ago

#10697 closed defect (wontfix)

dojox.xml.parser.parse ReferenceError: nativeDoc is not defined.

Reported by: Justin Cooley Owned by: Tom Trenka
Priority: high Milestone: tbd
Component: Dojox Version: 1.4.0
Keywords: Cc: RGagne@…, jmargaris@…
Blocked By: Blocking:

Description

In Firefox, if you try parsing an XML document that has errors, you get the javascript error "ReferenceError?: nativeDoc is not defined." On line 42 of parser.js I believe the variable "nativeDoc" has just been renamed to "doc". I've made this change and it is now throwing the xml parse error.

Problem:

// parser.js - line: 42
throw new Error("Error parsing text " + nativeDoc.documentElement.firstChild.data + " \n" + sourceText);

Solution:

// parser.js - line: 42
throw new Error("Error parsing text " + doc.documentElement.firstChild.data + " \n" + sourceText);

Change History (3)

comment:1 Changed 8 years ago by bill

Cc: RGagne@… jmargaris@… added
Component: ParserDojox
Owner: changed from bill to Adam Peller

Not sure that XML parser is being maintained anymore?

comment:2 Changed 8 years ago by Adam Peller

Owner: changed from Adam Peller to Tom Trenka

comment:3 Changed 7 years ago by Tom Trenka

Resolution: wontfix
Status: newclosed

Not sure it is either.

Note: See TracTickets for help on using tickets.