mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
@mmcc Fixed IE by using setAttribute to set 'type' property. closes #2487
This commit is contained in:
parent
51f92181e8
commit
863f31546d
@ -97,6 +97,7 @@ CHANGELOG
|
||||
* @ogun fixed a typo in the Turkish translation ([view](https://github.com/videojs/video.js/pull/2460))
|
||||
* @gkatsev fixed text track errors on dispose and in cross-browser testing ([view](https://github.com/videojs/video.js/pull/2466))
|
||||
* @mmcc added type=button to button components ([view](https://github.com/videojs/video.js/pull/2471))
|
||||
* @mmcc Fixed IE by using setAttribute to set 'type' property ([view](https://github.com/videojs/video.js/pull/2487))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -43,7 +43,7 @@ export function createEl(tagName='div', properties={}){
|
||||
// add the attribute "role". My guess is because it's not a valid attribute in some namespaces, although
|
||||
// browsers handle the attribute just fine. The W3C allows for aria- * attributes to be used in pre-HTML5 docs.
|
||||
// http://www.w3.org/TR/wai-aria-primer/#ariahtml. Using setAttribute gets around this problem.
|
||||
if (propName.indexOf('aria-') !== -1 || propName === 'role') {
|
||||
if (propName.indexOf('aria-') !== -1 || propName === 'role' || propName === 'type') {
|
||||
el.setAttribute(propName, val);
|
||||
} else {
|
||||
el[propName] = val;
|
||||
|
Loading…
Reference in New Issue
Block a user