Comments (8)
Does this happen in 0.16 as well? If so, what do you propose as the fix?
from virtual-dom.
Doesn't happen with 0.16, I discovered my mistake in this package while migrating it to 0.17 (it wasn't triggering any runtime error in 0.16)
from virtual-dom.
It looks like the new and old libraries are doing exactly the same things. As far as I can tell, both are doing:
var node = document.createElement('select');
node['type'] = 'checkbox';
I guess something is happening in between those two things. I looked at all the fields in node
and there are definitely fewer in the new one. I don't really understand how or why.
from virtual-dom.
That could be related to strict mode and browser versions, I'm investigating.
Edit: re-checked 0.16 version, confirm it doesn't raise error for same Chrome version. So it's probably due to a strictness context change around this call?
from virtual-dom.
See here:
http://www.ecma-international.org/ecma-262/5.1/#sec-11.13.1 (NOTE section)
from virtual-dom.
This still throws a runtime exception in 0.18. I updated OP to reflect this.
from virtual-dom.
Tracking in #106 which is for any type_
issues.
Please continue discussion here if there is more information to share. The point of the meta issue is to do some organizing and editorializing that makes it easier to make progress on this sort of thing.
from virtual-dom.
It is an even sillier mistake on my part, but I accidentally left a class
attribute from Html.Attributes in an svg element. I am using 0.19.1.
https://ellie-app.com/7xG7sn9nrB2a1
from virtual-dom.
Related Issues (20)
- VirtualDom.lazy fires when arguments are constants
- Styles get lost after model update
- `javascript:` ban disallows legitimate use for bookmarklets HOT 4
- Html.map with IE11: Unable to get property 'j' of undefined or null reference HOT 3
- Possible to bypass XSS filter with nodeNS HOT 3
- Reusing anchor node leaves empty href attr HOT 1
- Node re-use carries over DOM state like :focus HOT 3
- Html.map + timeupdate event after DOM removal creates invalid Msg
- Uncaught TypeError: Cannot assign to read only property 'className' of object [DOM mutations from FontAwesome] HOT 1
- textarea [type_ "text"] [] blows up Elm HOT 1
- Lack of good error message when HTML document is malformed
- node removal in `_VirtualDom_diffKeyedKids` when prepending items HOT 3
- `</script>` in string literals is not escaped for embedding elm.js directly in HTML
- Redundant removal and reinsertion of node breaks focus on element HOT 6
- Preventable runtime error caused by setAttribute '' HOT 2
- Adding type_ attribute to textarea throws error in runtime
- Html.Keyed.node does not preserve scroll positions across children
- lazy can cause loss of user's input focus HOT 1
- Child elements not added to <template> elements
- Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'. HOT 1
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 virtual-dom.