Skip to content

[[Construct]] for legacy platform objects? #407

@TimothyGu

Description

@TimothyGu

On a page with #title:

new document.all('title')

In Chrome the snippet returns the same result as document.all('title'), while on Firefox the following error is thrown:

TypeError: document.all is not a constructor

[[Construct]] is technically undefined by this spec right now, so either behavior is strictly speaking acceptable. However, the Chrome behavior doesn't make much sense to me, so I'd like to propose a dedicated section for [[Construct]] saying that it does not exist for legacy platform objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions