Re: <details>

On Mon, 14 Sep 2009 15:12:51 +0200, Toby Inkster <tai@g5n.co.uk> wrote:

> This would be a reason to add <script implements> to HTML5. The HTML5
> documentation would define a URI that represents the functionality of
> the <details> element, say:

There's a more robust way supported already:

    if (typeof document.createElement('details').open == 'undefined') {
      // script that implements <details> here
    }


<script implements> seems to be equivalent to hasFeature in its design,  
which is known to be unreliable (see the note about hasFeature in HTML5).

-- 
Simon Pieters
Opera Software

Received on Monday, 14 September 2009 13:50:59 UTC