Subj : Re: DOM bindings To : Kumar From : Igor Bukanov Date : Mon Apr 05 2004 11:16 am Kumar wrote: > Hi All > > I read the following on this forum > > " > Rhino is just a JavaScript engine that supports core ECMAScript standard > and few useful extensions like Java scripting. It does not define or > support any DOM functionality that in your case is provided by HTTPUnit. > Please report to HTTPUnit guys that they do not provide bindings for > Document.createElement" > > Can anyone please tell me what DOM binding means? It means that Rhino does not provide implementation of host objects that are not in the ECMAScript standard but that are available in any reasonable browser implementation. For example, Rhino does not provide document, navigator, screen, window etc. objects. In an ideal world it would simple to provide such objects from an existing standard-conforming Java implementation of DOM API since direct scripting of Java available in Rhino would make the job almost trivial. Unfortunately such implementation would be useless in the real world where almost each and every script uses MSIE-specific extensions supported nowday bu Mozilla, Konqueror etc. browsers but without any support for them in Java DOM implementations. In addition many Java implementation cut corners and does not provide optional DOM features like working document.write() implementation. On the other hand if you have full control on HTML pages and scripts it should not be that difficult to provide mini-dom that allows to process the pages properly. Regards, Igor .