Rhino itself is a JavaScript engine that is not a fully functional implementation of the DOM browser. HTML parsing and the DOM API must be provided by something else.
HtmlUnit is a program that emulates a web browser. It uses Rhino to run JavaScript on the page.
source share