Can't access HTMLCollection from node.getElementsByClassName after inserting node into document

Issue #7560353 • Assigned to Travis L.


May 14, 2016
This issue is public.
Found in
  • Microsoft Edge
Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

To reproduce: Open attached HTML file.

Expected (observed in Firefox and Chrome):
The HTMLCollection c remains valid when the node x is inserted into the document. An alert box appears displaying the value of c.length, which is 1.

Observed (Microsoft Edge 25.10586.0.0):
The attempt to access c.length throws an error "Invalid calling object", which appears in the developer console.


1 attachment

Comments and activity

  • Live version of test case:

  • Microsoft Edge Team

    Changed Assigned To to “Ibrahim O.”

    Changed Assigned To to “Travis L.”

You need to sign in to your Microsoft account to add a comment.

Sign in