From 2b0500e40fbcd80f5ebc4e63175281742bba2a21 Mon Sep 17 00:00:00 2001 From: CAYdenberg Date: Wed, 16 Mar 2016 14:13:00 -0600 Subject: [PATCH] Issue #133: now identifying parent with parentElement or parentNode to fix issue #133 --- converter/lens_converter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/converter/lens_converter.js b/converter/lens_converter.js index af23dcd..9cfacc0 100644 --- a/converter/lens_converter.js +++ b/converter/lens_converter.js @@ -125,7 +125,7 @@ NlmToLensConverter.Prototype = function() { var els = scopeEl.querySelectorAll(selector); for (var i = 0; i < els.length; i++) { var el = els[i]; - if (el.parentElement === scopeEl) result.push(el); + if ((el.parentElement || el.parentNode) === scopeEl) result.push(el); } return result; }; @@ -176,7 +176,7 @@ NlmToLensConverter.Prototype = function() { // Overridden to create a Lens Article instance this.createDocument = function() { - + var doc = new Article(); return doc; };