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).
Merge pull request #2884 from patheard/expand-collapse-all

Expand/collapse all: fix native support for details