Ignore comment nodes

This commit is contained in:
varjolintu 2018-06-10 10:53:35 +03:00
parent 531328d6b3
commit cd56d832af

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 [];
}