Last Updated: February 19, 2017
· lucaong

Polyfilling the details element

The html5 details element makes it possible to create accordions and other widgets that can be shown/hidden by clicking on some handle with semantic html and no JavaScript. Unfortunately, support is quite poor at the moment.

Polyfilling is possible, but while it is easy on modern browsers, things get worse when it comes to old IE versions. I wrote a post on a possible polyfilling approach and its drawbacks: http://www.lucaongaro.eu/blog/2012/12/10/polyfilling-the-details-tag/