Skip to content
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

Closed
wants to merge 12 commits into from
Closed

Fix IE8 issues #27

wants to merge 12 commits into from

Conversation

agentcooper
Copy link
Contributor

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:

vdomVirtualize.searchForDataAttributes(['data-my-attr', 'data-option', 'data-id']);
// ...

if (dataAttrs.length > 0) {
dataAttrs.forEach(function(dataAttr) {
if (el.getAttribute(dataAttr)) {
obj[dataAttr] = el.getAttribute(dataAttr);
Copy link
Owner

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...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marcelklehr
Copy link
Owner

I found a simpler solution to enable data-* attributes, see #26

return;
}

if (el.tagName.toLowerCase() === 'button' && propName === 'type') {
Copy link
Owner

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...

@agentcooper agentcooper closed this Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IE8 issues
2 participants