Cobra is a pure Java HTML DOM parser and renderer. It supports HTML 4, JavaScript, and CSS 2 (with some limitations).