Closed davidchambers closed 2 years ago
Fixes #309
> Object.prototype.toString.call (document.createElement ('div')) '[object HTMLDivElement]' > Object.prototype.toString.call (document.createElement ('section')) '[object HTMLElement]'
Before:
> /^\[object HTML.+Element\]$/.test (Object.prototype.toString.call (document.createElement ('section'))) false
After:
> /^\[object HTML.*Element\]$/.test (Object.prototype.toString.call (document.createElement ('section'))) true
/cc @dotnetCarpenter
@davidchambers 👍
I've tested your change in Firefox and it works! But I am puzzled to how I got ... aha I see. I used Object.toString; and not Object.prototype.toString;.
Object.toString;
Object.prototype.toString;
You're fix is great :)
Fixes #309
Before:
After:
/cc @dotnetCarpenter