Opened 8 years ago
Closed 8 years ago
#18193 closed defect (invalid)
domNode and query results
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | Dijit | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I am using own templated widget inside another own templated widget.
this.domNode
returns
<div>
<div id="dgridPlace_${id}"></div>
</div>
query("div", this.domNode)[0]
returns
<div id="dgridPlace_id_1"></div>
result is ok
query("#dgridPlace_id_1", this.domNode)
returns
[]
result is wrong
this.domNode doesnt support getElementById and if I use query() with id, query() returns empty array.
Is this behavior correct?
Change History (2)
comment:1 Changed 8 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
is your domNode attached to the document when you run this query? i'm going to assume it's not and in that case the behavior is expected.
also, you're better off using an attach point than querying for the node.