diff --git a/lib/juice.js b/lib/juice.js index c17d4ac..1daa515 100644 --- a/lib/juice.js +++ b/lib/juice.js @@ -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; }