sparklemotion/nokogiri — pull request #733 by esse (2012-07-23 01:52:45+00:00)
Title: Issue with doctype of xhtml files, when parsing as xml in jruby

Hi,

in this pull request you will find failing testcase (only in jruby - passing in other implementations) for doctype problem inside xhtml files.

Steps to reproduce error:
1. Run irb in jruby
2. load nokogiri
3. parse using Nokogiri::HTML this kind of file:
```

Rainbow Dash

```
4. html.internal_subset.name should be 'html' is nil in jruby
5. (other asserts in tests)
6. when trying to put html to string inside jruby, calling html.to_s will get you different doctype then input file (HTML 4.01 Transitional instead of XHTML 1.1)