[Bug 21209] New: [Custom]: 4 Instantiating Custom Elements: parameters on createElement() doesn't need to be optional

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21209

            Bug ID: 21209
           Summary: [Custom]: 4 Instantiating Custom Elements: parameters
                    on createElement() doesn't need to be optional
    Classification: Unclassified
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Component Model
          Assignee: dglazkov@chromium.org
          Reporter: morrita@google.com
        QA Contact: public-webapps-bugzilla@w3.org
            Blocks: 14968

This is kinda editorial idea but...

> partial interface Document {
>     Element createElement(DOMString localName, optional DOMString typeExtension);
>     Element createElementNS(DOMString? namespace, DOMString qualifiedName, optional DOMString typeExtension);
> };

Since WebIDL supports overloading [1], typeExtension parameter on these API
doesn't need to be overloaded and it doesn't need to call themselves "monkey
patching".
It can be just a partial interface, which provides overloaded versions.


[1] http://dev.w3.org/2006/webapi/WebIDL/#idl-overloading

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 7 March 2013 08:11:20 UTC