You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I include "jquery.URI.js" in my html page, I get the following error:
SCRIPT5022: Element "source" does not have either property: href, src, action jquery.URI.js, line 131 character 9
There are no references to using the URI plugin on the page in question, or any files that includes, so I assume it is something to do with the way jquery.URI.js initializes itself.
The text was updated successfully, but these errors were encountered:
// pipe $.attr('src') and $.attr('href') through URI.js
var _attrHooks = {
get: function(elem) {
return $(elem).uri();
},
set: function(elem, value) {
return $(elem).uri().href(value).toString();
}
};
I am creating an html5 video like this:
var video = document.createElement("video");
var mp4 = document.createElement("source");
$(mp4).attr("src", "awesome.mp4");
$(mp4).attr("type", "video/mp4");
This doesn't do much in IE8, but I handle the IE8 video with flash player. However, jquery.URI.js appears to be intercepting the attr call and then it throws an error because IE8 doesn't know anything about the source element.
Is there anything I can do besides wrapping any attr call on an html5 element in a try block? (hope I don't need to do that because that will be a lot of extra typing)
I am sort of at a loss on this one.
I am using IE9. Browser mode: IE8. Document Mode: IE8 standards
The files are included in the following order:
/URI/IPv6.js
/URI/punycode.js
/URI/SecondLevelDomains.js
/URI/URI.js
/URI/URITemplate.js
/URI/jquery.URI.js
/URI/URI.fragmentQuery.js
/URI/URI.fragmentURI.js
If I include "jquery.URI.js" in my html page, I get the following error:
SCRIPT5022: Element "source" does not have either property: href, src, action jquery.URI.js, line 131 character 9
There are no references to using the URI plugin on the page in question, or any files that includes, so I assume it is something to do with the way jquery.URI.js initializes itself.
The text was updated successfully, but these errors were encountered: