Comments (4)
Okay. So I found out what is going on I think.
The problem is coming from jquery.URI.js here:
// 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)
from uri.js.
for now, edit the _attrHooks definition to ignore the source element. I'm not sure how to fix that properly at the moment.
from uri.js.
Can you provide a jsfiddle or jsbin so I can play around with this?
from uri.js.
When I used the build option on your main page, I got a very similar error.
Element "LABEL" does not have either property: href, src, action URI.js, line 78
Disabling the inclusion of the jQuery plugin and rebuilding removes this error. I don't need the integration, so this is just a heads up for you.
from uri.js.
Related Issues (20)
- Different results between 1.19.1 and 1.19.2 when using uri.scheme HOT 4
- What is the point of directory, suffix, etc? HOT 2
- Support for handling search as ES6 Map instead of Object properties
- setSearch() breaks previous url parameters
- Property for File Name without File Extension
- A reference resolution does not match RFC3986
- Test if URI/URL is templated
- URI.min.js 1.19.4 throws "does not have either property: href, src, action, cite" HOT 2
- [Feature request] Support for nested objects inside template builder.
- Hope to join the 'filenameNoExtension' api
- directory function is prepending not appending
- Append segments
- Trying to get in touch with you regarding a security issue HOT 1
- Handling of relative URLs that have a protocol in latest 1.19.7 HOT 1
- @types/urijs/index can only be default-imported using the 'allowSyntheticDefaultImports' flag HOT 1
- charset=Shift_JIS will fail to parse URI.js with a syntax error caused by non-ASCII characters in RegExp HOT 2
- Make invalid port check optional to support url templates
- Can we change separator?
- URI malformed exception is thrown when overriding path/pathname HOT 1
- Please do not omit the file extension for the value of the "main" field in the package.json
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uri.js.