blob: 8468a98797f16cd40611ed61dbea75fb70599aab [file]
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Tags that should not be visited.
const NON_TEXT_NODE_NAMES = new Set([
'SCRIPT', 'NOSCRIPT', 'STYLE', 'EMBED', 'OBJECT', 'TEXTAREA', 'IFRAME',
'INPUT'
]);
// Tags that should not be decorated.
const NO_DECORATION_NODE_NAMES = new Set([
'A', 'LABEL'
]);
// Milliseconds delay between tap bubbling to top and checking for more DOM
// mutations before triggering annotation event.
const MS_DELAY_BEFORE_TRIGGER = 300;
export {
MS_DELAY_BEFORE_TRIGGER, NON_TEXT_NODE_NAMES, NO_DECORATION_NODE_NAMES,
}