Suppose I have two Match
nodes, and I try to parent one to the other, and then I try to retrieve the child's parent node.
Match p = $("parent");
Match c = $("child");
p.append(c);
Object o = c.parent();
At this point, o
seems to be an empty element list: "[]"
, which is not what I was expecting.
What is the correct way to parent a node to another, and then retrieve its new parent? Obviously, I know I could work directly with p
, but assume that at runtime, I only have a reference to c
. Thanks!