Opened 8 years ago
Closed 7 years ago
#17699 closed defect (fixed)
[patch][cla] Query for a node by id alone will not work when scoped to a root that is not yet added to the main dom tree
Reported by: | simong | Owned by: | Kris Zyp |
---|---|---|---|
Priority: | undecided | Milestone: | 1.11 |
Component: | Query | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Assume rootNode is a dom node that has been created but not yet added to the main dom tree. Underneath it there is a node with id "myId" and class "myClass"
query('#myId', rootNode)
will return empty. But either
rootNode.querySelector('#myId')
or
query('#myId.myClass', rootNode)
will find the node.
Change History (3)
comment:1 Changed 8 years ago by
Milestone: | tbd → 1.11 |
---|---|
Summary: | Query for a node by id alone will not work when scoped to a root that is not yet added to the main dom tree → [patch][cla] Query for a node by id alone will not work when scoped to a root that is not yet added to the main dom tree |
comment:2 Changed 8 years ago by
Owner: | set to Kris Zyp |
---|---|
Status: | new → assigned |
comment:3 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Pull request at https://github.com/dojo/dojo/pull/87/