Skip to content

Runtime error with blank nodes #34

Description

@ahankinson

If you pass a blank node name to the Svg.node method it will compile, but will crash the browser.

import Svg

Svg.node "" [] []

Results in:

Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'.
    at _VirtualDom_applyPatch (app.js:3759:13)
    at _VirtualDom_applyPatchesHelp (app.js:3717:17)
    at _VirtualDom_applyPatches (app.js:3708:9)
    at app.js:4081:16
    at updateIfNeeded (app.js:4615:56)

It looks like this also results in an infinite loop, since the number of errors keeps going until you refresh the page.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions