{"issue":{"user":{"id":1001358,"login":"bpaluzzi","url":"https://api.github.com/users/bpaluzzi","gravatar_id":"6c04fb6ae924e43d8a4ad93bde29d114","avatar_url":"https://secure.gravatar.com/avatar/6c04fb6ae924e43d8a4ad93bde29d114?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"title":"Issue with pageFragment combined with innerShiv","milestone":null,"created_at":"2011-08-24T11:44:51Z","labels":[],"state":"closed","updated_at":"2011-12-22T15:04:15Z","id":1473726,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/jdbartlett/innershiv/issues/13","closed_at":"2011-12-22T15:04:15Z","body":"Hi all --\r\n\r\nI'm using innerShiv to clean ajax data coming back via the jQuery .load() function.\r\n\r\n.load() supports page fragments using the syntax:\r\n```javascript\r\n.load('page.html #fragmentId');\r\n```\r\nwhen trying to combine this with innerShiv (using the following syntax):\r\n```javascript\r\njQuery.ajaxSetup({\r\ndataFilter: function(data, dataType) {\r\nif (typeof innerShiv === 'function' && dataType === 'html') {\r\nreturn innerShiv(data);\r\n}\r\nelse {\r\nreturn data;\r\n}\r\n}\r\n});\r\n\r\n//http://bit.ly/ishiv | WTFPL License\r\nwindow.innerShiv=/*INNERSHIV DEF HERE*/\r\n```\r\n\r\nWhen a .load() is called, it throws an \"Object doesn't support this property or method\" error, pointing to a similar block of code in 1.5.1 or 1.6.2:\r\n\r\n1.5.1 (line 16, char 65428)\r\n1.6.2 (line 18, char 6260)\r\n```javascript\r\nc=a.responseText,a.isResolved()\r\n```\r\n\r\nAny ideas?  Is it something I'm doing wrong, or is it a legitimate bug? \r\n\r\nThanks!","number":13,"url":"https://api.github.com/repos/jdbartlett/innershiv/issues/13","comments":2,"assignee":null},"comment":{"user":{"id":109632,"login":"jdbartlett","url":"https://api.github.com/users/jdbartlett","gravatar_id":"5f115b6edf4656cce4b7c52634837acb","avatar_url":"https://secure.gravatar.com/avatar/5f115b6edf4656cce4b7c52634837acb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-22T15:04:15Z","updated_at":"2011-12-22T15:04:15Z","id":3249898,"body":"It sounds as though @brentkirby's solution to upgrade jQuery worked in your case.\r\n\r\nIf you're still having trouble with innerShiv, you may be happy to know that html5shiv itself now patches for the same issue, and without requiring you to use a wrapper function. You can get the most recent version of html5shiv here:\r\n\r\nhttp://code.google.com/p/html5shiv/","url":"https://api.github.com/repos/jdbartlett/innershiv/issues/comments/3249898"},"action":"created"}