medialize/ally.js

View on GitHub
src/supports/focus-svg-negative-tabindex-attribute.js

Summary

Maintainability
A
50 mins
Test Coverage

import {generate, validate} from './helper/svg';

export default {
  element: 'div',
  mutate: function(element) {
    element.innerHTML = generate('<text tabindex="-1">a</text>');
    return element.querySelector('text');
  },
  validate,
};