관리-도구
편집 파일: html5parser.cpython-311.pyc
� \�Dg�! � � � d Z ddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z eZn# e$ r eefZY nw xY w ddlmZ n# e$ r ddlmZ Y nw xY w ddlmZ n# e$ r ddlmZ Y nw xY w G d � d e� � Z ddlmZ G d� d e� � Z e� � Zn# e$ r Y nw xY wd� Zdd�Z dd�Z dd�Zdd�Z dd�Z!d� Z" e� � Z#dS )z? An interface to html5lib that mimics the lxml.html interface. � N)� HTMLParser)�TreeBuilder)�etree)�Element�XHTML_NAMESPACE�_contains_block_level_tag)�urlopen)�urlparsec � � e Zd ZdZdd�ZdS )r z*An html5lib HTML parser with lxml as tree.Fc �: � t j | f|t d�|�� d S �N)�strict�tree)�_HTMLParser�__init__r ��selfr �kwargss �w/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib64/python3.11/site-packages/lxml/html/html5parser.pyr zHTMLParser.__init__ s( � ���T�M�&�{�M�M�f�M�M�M�M�M� N�F��__name__� __module__�__qualname__�__doc__r � r r r r s4 � � � � � �4�4�N� N� N� N� N� Nr r )�XHTMLParserc � � e Zd ZdZdd�ZdS )r z+An html5lib XHTML Parser with lxml as tree.Fc �: � t j | f|t d�|�� d S r )�_XHTMLParserr r r s r r zXHTMLParser.__init__* s( � ��!�$�R�v�K�R�R�6�R�R�R�R�Rr Nr r r r r r r '