Closed dotnetCarpenter closed 2 years ago
This PR addresses the issue of HtmlElement's test not working for HTMLElements as described in #309.
HtmlElement
Currently, the test will always fail because Object.toString.call on an HTMLElement produces an error.
Object.toString.call
In Gecko (Firefox) the error is: "TypeError: Function.prototype.toString called on incompatible object"
In Blink (Chrome, Edge) the error is: "TypeError: Function.prototype.toString requires that 'this' be a Function"
This PR does not contain any new unit tests.
Obsoleted by #311
I used Object.toString; and not Object.prototype.toString;.
Object.toString;
Object.prototype.toString;
This PR addresses the issue of
HtmlElement
's test not working for HTMLElements as described in #309.Currently, the test will always fail because
Object.toString.call
on an HTMLElement produces an error.In Gecko (Firefox) the error is: "TypeError: Function.prototype.toString called on incompatible object"
In Blink (Chrome, Edge) the error is: "TypeError: Function.prototype.toString requires that 'this' be a Function"
This PR does not contain any new unit tests.