Skip to content

Commit

Permalink
Merge d124dbd into e79b36f
Browse files Browse the repository at this point in the history
  • Loading branch information
jetpacmonkey committed Mar 22, 2017
2 parents e79b36f + d124dbd commit a5d9a42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -156,7 +156,7 @@ module.exports = function typeDetect(obj) {
* Test: `Object.prototype.toString.call(document.createElement('blockquote'))``
* - IE <=10 === "[object HTMLBlockElement]"
*/
if (obj instanceof HTMLElement && obj.tagName === 'BLOCKQUOTE') {
if (obj instanceof globalObject.HTMLElement && obj.tagName === 'BLOCKQUOTE') {
return 'HTMLQuoteElement';
}

Expand All @@ -172,7 +172,7 @@ module.exports = function typeDetect(obj) {
* - Firefox === "[object HTMLTableCellElement]"
* - Safari === "[object HTMLTableCellElement]"
*/
if (obj instanceof HTMLElement && obj.tagName === 'TD') {
if (obj instanceof globalObject.HTMLElement && obj.tagName === 'TD') {
return 'HTMLTableDataCellElement';
}

Expand All @@ -188,7 +188,7 @@ module.exports = function typeDetect(obj) {
* - Firefox === "[object HTMLTableCellElement]"
* - Safari === "[object HTMLTableCellElement]"
*/
if (obj instanceof HTMLElement && obj.tagName === 'TH') {
if (obj instanceof globalObject.HTMLElement && obj.tagName === 'TH') {
return 'HTMLTableHeaderCellElement';
}
}
Expand Down

0 comments on commit a5d9a42

Please sign in to comment.