Can you actually validate HTML from user mode javascript? Isn't the HTML that you can access from JS the result of the browser's parser doing various things to 'fix up' mangled/incorrect HTML, and map the HTML to the actual object model (tbody elements, for example)?