Polymer/ShadowDOM — pull request #490 by jsoverson (2014-08-13 18:17:25+00:00)
Title: Bypassing element wrapping for elements that do not exist

This simply shorts out of the wrapping process if the native element doesn't exist, which can be the case for media related elements (HTMLAudioElement, HTMLVideoElement, etc) in headless browsers or browsers explicitly compiled without libraries that enable support for such elements (not uncommon for custom CEF builds).

This is the most obvious remaining issue before phantomjs v2 has basic testable support for platform.js and polymer.

I submitted the CLA and no tests seem to be affected (in Chrome, Chrome Canary, Firefox, Safari). If anything's not in order, feel free to close the PR and apply the change yourself, it's a trivial one.