different law selecting html elements xpath firefox internet explorer
i'm perplexing name specific html component document, firefox i only use:
xpathobj = document.evaluate(xpath, document, null,
xpathresult.first_ordered_node_type, null);
which works fine. however i try ie equivilent:
xmldoc=new activexobject("microsoft.xmldom");
xmldoc.async=false;
xmldoc.load(document);
xmldoc.setproperty("selectionlanguage", "xpath");
xpathobj = xmldoc.selectnodes(xpath);
i vigilant returned. doubt there an easy proceed xpath component i wish ie?
the xpath i'm controlling looks
/html/body/div[9]/div[2]
Comments
Post a Comment