hidden.js 645 B

12345678910111213141516171819202122
  1. /*!
  2. {
  3. "name": "[hidden] Attribute",
  4. "property": "hidden",
  5. "tags": ["dom"],
  6. "notes": [{
  7. "name": "WHATWG Spec",
  8. "href": "https://html.spec.whatwg.org/dev/interaction.html#the-hidden-attribute"
  9. }, {
  10. "name": "original implementation of detect code",
  11. "href": "https://github.com/aFarkas/html5shiv/blob/bf4fcc4/src/html5shiv.js#L38"
  12. }],
  13. "polyfills": ["html5shiv"],
  14. "authors": ["Ron Waldon (@jokeyrhyme)"]
  15. }
  16. !*/
  17. /* DOC
  18. Does the browser support the HTML5 [hidden] attribute?
  19. */
  20. define(['Modernizr', 'createElement'], function(Modernizr, createElement) {
  21. Modernizr.addTest('hidden', 'hidden' in createElement('a'));
  22. });