Open Bug 378666 Opened 18 years ago Updated 3 years ago

Incorrect error message "The expression is not a legal expression" when XPath namespace resolver is bogus

Categories

(Core :: XML, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: testcase)

> ppp = document.createExpression("//html:body", function(){ throw 3; } ) NS_ERROR_DOM_INVALID_EXPRESSION_ERR on line 1: The expression is not a legal expression. (I think that either the original exception |3| or the 'JavaScript component threw a number as an exception' message that appears on the error console should probably bubble up.) > ppp = document.createExpression("//html:body", /g/) NS_ERROR_DOM_INVALID_EXPRESSION_ERR on line 1: The expression is not a legal expression. (The error message should refer to the namespace resolver, or whatever error XPConnect complains about should bubble up as a JavaScript exception.)
Assignee: xml → nobody
QA Contact: ashshbhatt → xml
Bug still exists on trunk.
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.