I didn’t notice it in Modernizr’s documentation but I imagine you create a menu element then check if it exists? My only concern is that the browser may support that but not type context. Any ideas? Thanks.
I didn’t notice it in Modernizr’s documentation but I imagine you create a menu
Share
I have come up with a rather shoddy solution that returns
truefor Firefox as far as I can tell then returnsfalsefor Chrome, IE and Opera. Check it out:Let me know if that just horrifies you. It seems when a menu element is created with a browser that supports it, certain attributes are intrinsically defined.