typeError: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node Polymer

Prathap Parameswar

I am trying to implement context menu using polymer paper menu. Whenever I remove node from dom. polymer is throwing error like this

typeError: Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'

and I get the following error message:

Error screenshot attached

What shall I do?

emememe

I had the same issue. This is due to polymer-mini.html checks if the arg passed to document.documentElement.contains(node) is node type. Debugging i could see that an event propagated so the last iteration was window object causing this issue. My solution was adding ev.stopPropagation() to the code before removing action.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

From Dev

Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'

From Dev

Javascript error: Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'

From Dev

Getting an error: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

From Dev

Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'

From Dev

Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. in Chrome

From Dev

polymer.html: Uncaught TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'

From Dev

Leaflet.markercluster onclick error - Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

From Dev

Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node' error on append tr to a table

From Dev

Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'

From Dev

Angularjs : Uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'

From Dev

failed to execute appendchild on node

From Dev

Error: Failed to execute 'insertBefore' on 'Node'

From Dev

Uncaught HierarchyRequestError: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent

From Dev

NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node

From Dev

Failing Angular directive unit test on MutationObserver: parameter 1 is not of type 'Node'

From Dev

OpenShift: "Failed to execute control start" on node application

From Dev

XPath Error in Mink: Failed to execute 'evaluate' on 'Document': The result is not a node set, and therefore cannot be converted to the desired type

From Dev

Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' - Angular / Ionic kendo-chart

From Dev

Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node

From Dev

Failed to execute 'appendChild' on 'Node': The new child element is null

From Dev

jQuery Chosen: Uncaught NotFoundError: Failed to execute 'appendChild' on 'Node':

From Dev

Failed to execute 'requestAnimationFrame' on 'Window': The callback provided as parameter 1 is not a function.

From Dev

TypeError: Argument 1 of Node.appendChild does not implement interface Node

From Dev

Function parameter failing to execute in Node.JS Jasmine test

From Dev

Cannot append DOM element to DIV node: Uncaught HierarchyRequestError: Failed to execute 'appendChild' on 'Node'

From Java

xslt 1 : check if node contains any value from list

From Dev

TypeError: unorderable types: Node() < Node()

From Dev

Execute callback in node

Related Related

  1. 1

    Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

  2. 2

    Uncaught TypeError: Failed to execute 'insertBefore' on 'Node': parameter 1 is not of type 'Node'

  3. 3

    Javascript error: Uncaught TypeError: Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'

  4. 4

    Getting an error: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

  5. 5

    Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'

  6. 6

    Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. in Chrome

  7. 7

    polymer.html: Uncaught TypeError: Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'

  8. 8

    Leaflet.markercluster onclick error - Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'

  9. 9

    Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node' error on append tr to a table

  10. 10

    Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'

  11. 11

    Angularjs : Uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'

  12. 12

    failed to execute appendchild on node

  13. 13

    Error: Failed to execute 'insertBefore' on 'Node'

  14. 14

    Uncaught HierarchyRequestError: Failed to execute 'insertBefore' on 'Node': The new child element contains the parent

  15. 15

    NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node

  16. 16

    Failing Angular directive unit test on MutationObserver: parameter 1 is not of type 'Node'

  17. 17

    OpenShift: "Failed to execute control start" on node application

  18. 18

    XPath Error in Mink: Failed to execute 'evaluate' on 'Document': The result is not a node set, and therefore cannot be converted to the desired type

  19. 19

    Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' - Angular / Ionic kendo-chart

  20. 20

    Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node

  21. 21

    Failed to execute 'appendChild' on 'Node': The new child element is null

  22. 22

    jQuery Chosen: Uncaught NotFoundError: Failed to execute 'appendChild' on 'Node':

  23. 23

    Failed to execute 'requestAnimationFrame' on 'Window': The callback provided as parameter 1 is not a function.

  24. 24

    TypeError: Argument 1 of Node.appendChild does not implement interface Node

  25. 25

    Function parameter failing to execute in Node.JS Jasmine test

  26. 26

    Cannot append DOM element to DIV node: Uncaught HierarchyRequestError: Failed to execute 'appendChild' on 'Node'

  27. 27

    xslt 1 : check if node contains any value from list

  28. 28

    TypeError: unorderable types: Node() < Node()

  29. 29

    Execute callback in node

HotTag

Archive