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