Merge pull request #185 from keepassxreboot/ignore_comment_nodes

Ignore comment nodes
This commit is contained in:
Janek Bevendorff 2018-06-10 11:33:26 +02:00 committed by GitHub
commit 20f600cce7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1180,7 +1180,7 @@ cipObserverHelper.inputTypes = [
];
cipObserverHelper.getInputs = function(target) {
if (target.nodeType === Node.TEXT_NODE) {
if (target.nodeType === Node.TEXT_NODE || target.nodeType === Node.COMMENT_NODE) {
return [];
}