{"issue":{"milestone":null,"user":{"id":195035,"login":"dnagir","url":"https://api.github.com/users/dnagir","avatar_url":"https://secure.gravatar.com/avatar/73ba2d202efab9804e1e344f2079f605?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"73ba2d202efab9804e1e344f2079f605"},"title":"HTML includes XML declaration and DOCTYPE on JRuby","created_at":"2011-12-15T04:56:21Z","labels":[],"updated_at":"2011-12-19T09:03:19Z","state":"open","id":2563133,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/jnicklas/capybara/issues/570","closed_at":null,"body":"Under JRuby 1.6.5 (1.9 mode) the `page.html` returns something that looks like:\r\n\r\n```ruby\r\n> page.html\r\n\r\n\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n<!DOCTYPE html PUBLIC \\\"-//W3C//DTD HTML 4.01 Transitional//EN\\\"....\"\r\n```\r\nWe can clearly see that `<?xml version=\"1.0\" encoding=\"UTF-8\">` has been inserted which is just plain wrong.\r\n\r\nThis doesn't happen on MRI 1.9.3.\r\n\r\nAny clues how to fix/workaround it?\r\n\r\n(using rack driver).","number":570,"url":"https://api.github.com/repos/jnicklas/capybara/issues/570","comments":5,"assignee":null},"comment":{"user":{"id":134,"login":"jnicklas","url":"https://api.github.com/users/jnicklas","avatar_url":"https://secure.gravatar.com/avatar/6c469749d725177dd2837d806c769cd4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6c469749d725177dd2837d806c769cd4"},"created_at":"2011-12-19T09:03:19Z","updated_at":"2011-12-19T09:03:19Z","id":3200769,"body":"Hmm, strange. Browsers should generally ignore an XML declaration, except that it may throw the browser into quirks mode IIRC. Have you tried this in multiple browsers?","url":"https://api.github.com/repos/jnicklas/capybara/issues/comments/3200769"},"action":"created"}