[Pkg-mozext-commits] [adblock-plus-element-hiding-helper] 15/28: Issue 4588 - "View source" command doesn't show text nodes
David Prévot
taffit at moszumanska.debian.org
Fri Aug 4 21:15:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus-element-hiding-helper.
commit d12e1e2ceb09edf6c9b980220557447f39f0b173
Author: Wladimir Palant <trev at adblockplus.org>
Date: Mon Oct 31 10:35:43 2016 +0100
Issue 4588 - "View source" command doesn't show text nodes
---
lib/aardvark.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/aardvark.js b/lib/aardvark.js
index 5c4f66d..bca6be7 100644
--- a/lib/aardvark.js
+++ b/lib/aardvark.js
@@ -738,7 +738,7 @@ let Aardvark = exports.Aardvark =
var startTag = this.window.document.createElement("hbox");
startTag.className = "elementStartTag";
- if (!node.firstElementChild)
+ if (!node.firstChild)
startTag.className += " elementEndTag";
this.appendDescription(startTag, "<", null);
@@ -755,12 +755,12 @@ let Aardvark = exports.Aardvark =
}
}
- this.appendDescription(startTag, node.firstElementChild ? ">" : " />", null);
+ this.appendDescription(startTag, node.firstChild ? ">" : " />", null);
box.appendChild(startTag);
- if (node.firstElementChild)
+ if (node.firstChild)
{
- for (var child = node.firstElementChild; child; child = child.nextElementSibling)
+ for (var child = node.firstChild; child; child = child.nextSibling)
this.getOuterHtmlFormatted(child, box);
var endTag = this.window.document.createElement("hbox");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus-element-hiding-helper.git
More information about the Pkg-mozext-commits
mailing list