metal / metal.js

Build UI components in a solid, flexible way
http://metaljs.com
Other
229 stars 59 forks source link

[metal-dom] domNamed.contains isn't working on IE11 when I pass document as first argument #401

Closed diegonvs closed 5 years ago

diegonvs commented 5 years ago

If you try use document.contains(document.querySelector('link')) on IE11 the browser returns the following message:

Object doesn't support property or method 'contains'

domNamed implementation of contains just follow browser implementation.

PS: Using IE11 with old Trident engine, that comes default on latest Windows 7 or Windows 8.1 builds.