question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi @vpenades !

What’s the reasoning for building the node hierarchy exclusively via CreateNode()?

I’m traversing my application’s DOM depth first, and I would like to create nodes independently from it’s parent.

So say we have a DOM like this:

A
- B
   - C

I would like to:

  • create node C
  • create node B, and add node C to its children
  • create node A, and add node B to its children

So, I need something like AppendNode(), which would append the node to a node’s children.

Is this something we could add?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vpenadescommented, Jun 3, 2019

Notice that both Scene and Node already implement such interface, see IVisualNodeContainer

0reactions
promontiscommented, Jun 3, 2019

Thanks for the tip! Will try if this interface works as well 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Element: append() method - Web APIs - MDN Web Docs
The Element.append() method inserts a set of Node objects or string objects after the last child of the Element . String objects are...
Read more >
Node: appendChild() method - Web APIs - MDN Web Docs
The appendChild() method of the Node interface adds a node to the end of the list of children of a specified parent node....
Read more >
HTML DOM Element appendChild() Method
Description. The appendChild() method appends a node (element) as the last child of an element. ; Parameters · Required. The node to append....
Read more >
Append node (SPSS Modeler)
You can use Append nodes to concatenate sets of records. Unlike Merge nodes, which join records from different sources together, Append nodes read...
Read more >
JavaScript append
append () method to append a set of Node objects or DOMString objects after the last child node of the parentNode . Was...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found