7.3.1.b getInstanceDocument() method throws DOMException (non-normative)
blue
7.3.1.b getInstanceDocument() method throws DOMException (non-normative)
This test case uses Javascript to execute the getInstanceDocument() method.
You may have seen a message box with the value "DOMException".
try {
var model = document.getElementById('my_model1');
var inst1 = model.getInstanceDocument('my_INVALID');
var my_color = inst1.getElementsByTagName('color')[0];
alert(my_color.textContent);
}
catch(DOMException) {
alert('DOMException');
}