Skip to content

Better feature test #1

mathiasbynens opened this Issue Aug 8, 2011 · 4 comments

2 participants


To check for native <details> support you may want to use a more robust feature test. WebKit had implemented the IDL attributes (so 'open' in document.createElement('details') === true) long before it actually supported <details>.

For a more robust solution, see and especially


Oh, thank you for this information!


Did you know about my polyfill before you started yours? Just wondering if there was anything in particular you didn’t like about my version. I appreciate any feedback!


No. I just didn't know until I was almost done. If I had seen it before I had probably never created my own polyfill ;)

Now it's my goal to make it not-jQuery-dependend.

@manuelbieh manuelbieh reopened this Nov 22, 2011
@manuelbieh manuelbieh closed this Nov 22, 2011

Could you add a comment with a link to above the feature test?

@manuelbieh manuelbieh reopened this Jul 12, 2012
@manuelbieh manuelbieh closed this Jul 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.