AdvancedHTMLParser.constants | index |
# Copyright (c) 2015, 2017 Tim Savannah under LGPLv3.
# See LICENSE (https://gnu.org/licenses/lgpl-3.0.txt) for more information.
# Constants in AdvancedHTMLParser
Data | ||
ALL_JAVASCRIPT_EVENT_ATTRIBUTES = {'onafterprint', 'onbeforeprint', 'onbeforeunload', 'onblur', 'onchange', 'onclick', ...} COMMON_JAVASCRIPT_ATTRIBUTES = {'onblur', 'onchange', 'onclick', 'oncontextmenu', 'oncopy', 'oncut', ...} IMPLICIT_SELF_CLOSING_TAGS = {'br', 'hr', 'img', 'input', 'link', 'meta'} INVISIBLE_ROOT_TAG = 'xxxblank' INVISIBLE_ROOT_TAG_END = '</xxxblank>' INVISIBLE_ROOT_TAG_START = '<xxxblank>' PREFORMATTED_TAGS = {'code', 'pre'} PRESERVE_CONTENTS_TAGS = {'code', 'pre', 'script', 'style'} TAG_ITEM_ATTRIBUTES_SPECIAL_VALUES = {'tabIndex': <function <lambda>>} TAG_ITEM_ATTRIBUTE_LINKS = {'align', 'className', 'dir', 'hidden', 'id', 'name', ...} TAG_ITEM_BINARY_ATTRIBUTES = {'checked', 'hidden'} TAG_ITEM_CHANGE_NAME_FROM_ATTR = {'class': 'className', 'tabindex': 'tabIndex'} TAG_ITEM_CHANGE_NAME_FROM_ITEM = {'className': 'class', 'tabIndex': 'tabindex'} TAG_NAMES_TO_ADDITIONAL_ATTRIBUTES = {'a': {'href'}, 'body': {'onafterprint', 'onbeforeprint', 'onbeforeunload', 'onerror', 'onhashchange', 'onload', ...}, 'button': {'checked', 'onchange', 'oncontextmenu', 'oninput', 'oninvalid', 'onreset', ...}, 'details': {'ontoggle'}, 'form': {'onblur', 'onchange', 'oncontextmenu', 'onfocus', 'oninput', 'oninvalid', ...}, 'input': {'checked', 'onchange', 'oncontextmenu', 'oninput', 'oninvalid', 'onreset', ...}, 'menu': {'onshow'}, 'submit': {'b', 'checked', 'i', 'm', 'n', 'o', ...}} otherInputName = 'option' |