tenderlove/nokogiri — Issue #590: HTML includes XML declaration and DOCTYPE on JRuby
Author: dnagir
Created: 2012-01-03 21:26:46+00:00
State: open

When using with Capybara and JRuby 1.6.5 (1.9 mode) the `page.html` returns something that looks like:

```ruby
> page.html

"\n` has been inserted which changes the resulting output.
Also the DOCTYPE is transitional HTML 4.01, but this is not correct either because the page was generated with DOCTYPE for HTML5.

This doesn't happen on MRI 1.9.3.

Any clues how to fix/workaround it?

(Originally [opened on the Capybara](https://github.com/jnicklas/capybara/issues/570) but was pointed to the Nokogiri).