From: Teryl T. <ter...@gm...> - 2015-05-14 15:32:23
|
Hi everyone, Great job with HTMLUnit. Just learning it and it seems like a nice stable piece of software. I have a question about some javascript I'm running in a page. a snippet is as follows: var obj = window.document.createElement("object"); obj.classid = javaClassIds[k]; window.document.body.appendChild(obj); As expected, this code creates an HTMLObjectElement in Java. However, the second line calls the "put" function on HTMLObjectElement rather than setClassid. I'd like to build an Active X object for the classid, and use it to handle the custom attributes, which seems like it would work if setClassid was called in the above scenario. Is this a bug or the intended functionality? Is there any easy way to force setClassid to be called? Best, Teryl |