webshim icon indicating copy to clipboard operation
webshim copied to clipboard

getShadowElement does not return all shadow dom elements

Open jjoekoullas opened this issue 9 years ago • 0 comments

Noticed this for input[type="date"], .getShadowElement() returns the injected input[type="text"] but does not also return the corresponding span.step-controls or button.ws-popover-opener.

From the docs: "Webshims lib sometimes has to add additional DOM elements to mimic the UI of HTML5 elements. This can sometimes create differences, between polyfilled and non polyfilled browsers. Webshims lib gives you a method called 'getShadowElement' to access the shadowelement from the native element..." which seems to imply .getShadowElement() should return all the additional added DOM elements.

jjoekoullas avatar Nov 22 '15 21:11 jjoekoullas