Skip to content

DOMElement containing 'img' tag kills all descendant DOMElements #226

@oldschooljarvis

Description

@oldschooljarvis

If you add a DOMElement containing an 'img' tag to a Node, and that node has descendant nodes which also contain DOMElements, those descendant DOMElements simply disappear.

Note that:
  • Image type appears to have no impact (tested: .jpg, .png)
  • It doesn't matter if the image src URL resolves or not. Even if it 404s (as in these examples), the behavior is identical to properly linked images.
  • Hierarchy depth doesn't matter. Everything beneath dies.
  • Mesh renderables and the underlying nodes themselves appear completely unaffected.

Examples + source:

Example 1 (works)

famous-engine-imgbug01

Source: https://gist.github.com/oldschooljarvis/881569559e8964f9f67e

Example 2 (broken)

famous-engine-imgbug02

Source: https://gist.github.com/oldschooljarvis/0e48bbf12f6c72a771cc

Example 3 (broken)

famous-engine-imgbug03

Source: https://gist.github.com/oldschooljarvis/b67d2341d9162630894d

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions