-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix IE8 issues #27
Fix IE8 issues #27
Conversation
if (dataAttrs.length > 0) { | ||
dataAttrs.forEach(function(dataAttr) { | ||
if (el.getAttribute(dataAttr)) { | ||
obj[dataAttr] = el.getAttribute(dataAttr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this, how vdom wants data-attribs? Does this work? (I assumed it only accepted DOM properties, and setting the name of an attrib as a property doesn't seem to make sense with that assumption in mind...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marcelklehr It seems to work, here is the test case: https://github.com/agentcooper/vdom-virtualize/blob/master/specs/spec/spec.js#L55
I found a simpler solution to enable data-* attributes, see #26 |
return; | ||
} | ||
|
||
if (el.tagName.toLowerCase() === 'button' && propName === 'type') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really necessary? I notice github has <button type="button">
s...
Closes #26
IMG tag and styles are working correct now.
For data-attributes I've made a manual solution, where you need to provide data attributes you will search for: