{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/cacb3e93b8acde0219ad4eb099205a82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cacb3e93b8acde0219ad4eb099205a82","url":"https://api.github.com/users/matthooks","login":"matthooks","id":3667},"milestone":null,"updated_at":"2011-11-06T19:14:43Z","labels":[],"assignee":null,"comments":0,"closed_at":null,"url":"https://api.github.com/repos/eval/rack-pjax/issues/4","body":"Re: https://github.com/eval/rack-pjax/blob/master/lib/rack/pjax.rb#L21\r\n\r\nThe call to `Nokogiri::XML::Node#inner_html` here returns HTML that doesn't respect the original response's whitespace between elements, which can affect elements with their `display` property set to `inline-block`.\r\n\r\nIn my specific case, the non-PJAX response looks like:\r\n\r\n```html\r\n<ul><li>text</li><li>text</li></ul>\r\n```\r\n\r\nBut the PJAX response looks like:\r\n\r\n```html\r\n<ul>\r\n<li>\r\ntext\r\n</li>\r\n<li>\r\ntext\r\n</li>\r\n</ul>\r\n```\r\n\r\nThere are several front-end workarounds (using JS to remove the white space, setting the parent element to `font-size:0;`), but this should probably be handled in the middleware. Thoughts?","html_url":"https://github.com/eval/rack-pjax/issues/4","number":4,"title":"Nokogiri parsing is affecting white space","id":2157459,"created_at":"2011-11-06T19:14:43Z"},"action":"opened"}