xml3d / xml3d.js

The WebGL/JS implementation of XML3D
Other
75 stars 25 forks source link

XML3D does not initialize when adding xml3d tag as part of hierarchy #132

Closed wherget closed 9 years ago

wherget commented 9 years ago

When adding a structure such as

<div>
 <xml3d>
   <!--- more stuff -->
 </xml3d>
</div>

to the DOM (using, e.g. appendChild), the MutationRecord's addedNodes list only contains the toplevel <div>. Since xml3d.js only checks the nodes in the list, the newly added xml3d tag is missed, and nothing is initialized.

csvurt commented 9 years ago

I'll add this to the upcoming 4.9.3 hotfix