Changes between Initial Version and Version 1 of Ticket #15226


Ignore:
Timestamp:
Apr 21, 2012, 4:37:05 PM (8 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15226

    • Property Summary changed from dom.create() document parameter to domConstruct.create() optional document parameter
  • Ticket #15226 – Description

    initial v1  
    1 Most of the methods in the dom* modules allow explicitly or implicitly specifying a document.   For example:
     1Most of the methods in the dom* modules allow optionally explicitly or implicitly specifying a document.   For example:
    22   - {{{dom.byId(id, doc)}}} looks up "id" in document "doc"
    33   - {{{domConstruct.place("<div>hi</div>", refNode)}}} creates the <div> in refNode.ownerDocument
    44
    5 However, domConstruct.create() doesn't take a document, so you can't easily specify a document for a case like:
     5However, domConstruct.create() doesn't take an optional document parameter, so you can't easily specify a document for a case like:
    66
    77{{{#!js
     
    3838(I'm also not sure if withDoc() will be around in 2.0.)
    3939
    40 So, this is a ticket to consider adding a document parameter to the create() method.
     40So, this is a ticket to consider adding an optional document parameter to the create() method.   I'm not sure what the signature would be though, since create() already has a number of optional parameters.