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

Patch to fix IE7 #1495

Closed
doublex opened this issue Sep 9, 2014 · 11 comments
Closed

Patch to fix IE7 #1495

doublex opened this issue Sep 9, 2014 · 11 comments

Comments

@doublex
Copy link

doublex commented Sep 9, 2014

Hello,

I wrote a patch for those who are interessted in supporting IE7:
http://doppelbauer.name/video-js-4.8.1-fix-IE7.patch

Description of the problem:
http://stackoverflow.com/questions/3653444/css-styles-not-applied-on-dynamic-elements-in-internet-explorer-7

Thanks a lot
Markus

@gkatsev
Copy link
Member

gkatsev commented Sep 9, 2014

Can you provide the patch as a PR, would be a lot easier for us to pull in.

@doublex
Copy link
Author

doublex commented Sep 9, 2014

*** video.dev.js.orig   2014-09-05 14:58:08.000000000 +0200
--- video.dev.js    2014-09-09 19:38:45.067531992 +0200
*************** vjs.Player.prototype.createEl = function
*** 3517,3523 ****
    // ID will now reference player box, not the video tag
    attrs = vjs.getElementAttributes(tag);
    vjs.obj.each(attrs, function(attr) {
!     el.setAttribute(attr, attrs[attr]);
    });

    // Update tag id/class for use as HTML5 playback tech
--- 3517,3529 ----
    // ID will now reference player box, not the video tag
    attrs = vjs.getElementAttributes(tag);
    vjs.obj.each(attrs, function(attr) {
!     // workaround IE7: http://stackoverflow.com/questions/3653444/css-styles-not-applied-on-dynamic-elements-in-internet-explorer-7
!     if (attr == 'class') {
!       el.className = attrs[attr];
!     }
!     else {
!       el.setAttribute(attr, attrs[attr]);
!     }
    });

    // Update tag id/class for use as HTML5 playback tech

@t2y
Copy link
Contributor

t2y commented Sep 11, 2014

See this comment on #1466. It works for me. Thank you again!

@doublex
Copy link
Author

doublex commented Sep 18, 2014

@gkatsev
Sorry - git is not the right tool for me.
Is there a chance, that this patch will be applied to video.js?

@t2y
Copy link
Contributor

t2y commented Sep 22, 2014

@gkatsev Could you merge this patch? It works for me.

@mmcc
Copy link
Member

mmcc commented Sep 22, 2014

@doublex We'll merge the patch, it would just be really nice to get these kinds of things as PRs rather than just comments of diffs. Not to sound unappreciative (we really are!), it would just be great to learn how we can help get past the Git barrier since you've actually submitted a few great fixes now.

This will most likely get pulled in / released tomorrow afternoon.

@doublex
Copy link
Author

doublex commented Sep 22, 2014

@mmcc
Thanks a lot for your kind help - and sorry for my ignorance.

@mmcc
Copy link
Member

mmcc commented Sep 22, 2014

No worries at all! Again, we're interested in learning how we can help you get these kinds of things submitted without you having to touch Git. We have a project we've been working on to try and smooth the submission process, but it's not quite ready for consumption yet. If it's cool with you, we might ping you for feedback here pretty soon.

Just out of curiosity, @doublex, what's your development environment?

mmcc added a commit to mmcc/video.js that referenced this issue Sep 29, 2014
@mmcc
Copy link
Member

mmcc commented Sep 29, 2014

I went ahead and created a PR for this: #1542

@t2y
Copy link
Contributor

t2y commented Sep 30, 2014

Thank you for merging!

@heff
Copy link
Member

heff commented Sep 30, 2014

Closed by #1542

@heff heff closed this as completed Sep 30, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants