Closed Bug 305184 Opened 15 years ago Closed 15 years ago
IXForms Model Element::get Instance Document raise DOMException
Currently we return NS_ERROR_FAILURE from nsXFormsModelElement::GetInstanceDocument(), but it should actually be a DOMException per the spec. The "raises(DOMException)" is commented out in the IDL, probably because the exact type of exception is unknown? Which NS_ERROR_DOM_* should we return?
While we're messing with the function, how about reporting an error to the console?
Returning DOM_NOT_FOUND error, and report errors.
Attachment #217029 - Flags: review?(Olli.Pettay) → review+
Fixed on trunk
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.