Skip to content

Commit

Permalink
Merge pull request #163 from jrit/cheerio-node-12
Browse files Browse the repository at this point in the history
fix undefined property error, issue #162
  • Loading branch information
jrit committed Oct 6, 2015
2 parents d33e199 + 682aa9f commit bc3a079
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/juice.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function inlineDocument($, css, options) {
els.each(function () {
var el = this;

if (juice.nonVisualElements.indexOf(el.name.toUpperCase()) >= 0) {
if (el.name && juice.nonVisualElements.indexOf(el.name.toUpperCase()) >= 0) {
return;
}

Expand Down

0 comments on commit bc3a079

Please sign in to comment.