Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 4702052

Browse files
committed
Merge pull request #490 from jsoverson/phantomjs2-support
Bypassing element wrapping for elements that do not exist
2 parents 6386877 + 6dd2de7 commit 4702052

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/wrappers/HTMLAudioElement.js

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
var OriginalHTMLAudioElement = window.HTMLAudioElement;
1414

15+
if (!OriginalHTMLAudioElement) return;
16+
1517
function HTMLAudioElement(node) {
1618
HTMLMediaElement.call(this, node);
1719
}

src/wrappers/HTMLMediaElement.js

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
var OriginalHTMLMediaElement = window.HTMLMediaElement;
1212

13+
if (!OriginalHTMLMediaElement) return;
14+
1315
function HTMLMediaElement(node) {
1416
HTMLElement.call(this, node);
1517
}

0 commit comments

Comments
 (0)