Expand/collapse all: fix native support for details

Browsers with native support for the details element now only have
the 'open' property set (fixes #2881).