xml3d / xml3d.js

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

Error: Value elements cannot be nested #176

Closed csvurt closed 8 years ago

csvurt commented 8 years ago

Value elements like <float3>, <int> or <float4x4> are leaf nodes that can't be nested. If you're seeing this error you should check for nested value elements, but also for elements that are missing a closing tag or use a self-closing tag that is not allowed in HTML. For example, the following HTML snippet will generate this error:

<float3 name="position" param="true" />

<!-- Should be -->
<float3 name="normal" param="true"></float3>

Any invalid self-closing element inside the XML3D scene has the potential to disrupt the DOM tree. XML3D tries to check for these problems but it is not always possible to recognize them, so if your scene is not being initialized properly you should first make sure you don't have any self-closing tags in it besides <img>.

This issue will be closed as it's meant to provide help only, but if you have any questions or tips for other users regarding this error please post them here!