If there is no child summary element, the user agent should provide its own legend (e.g. “Details”).
Chrome (the only browser with a working <details> implementation) does just that — provide a text legend saying “Details”. This is just a text node, not a child of a summary element.
http://www.whatwg.org/specs/web-apps/current-work/multipage/interactive-elements.html#the-details-element:
Chrome (the only browser with a working
<details>
implementation) does just that — provide a text legend saying “Details”. This is just a text node, not a child of asummary
element.Consider matching this behavior.
(I hope the spec will change this in the future: https://www.w3.org/Bugs/Public/show_bug.cgi?id=15455)