Opened 6 years ago

Closed 4 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 5 years ago by dylan

Milestone: tbd1.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 5 years ago by dylan

Owner: set to Kris Zyp
Status: newassigned

comment:3 Changed 4 years ago by dylan

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.