관리-도구
편집 파일: html5parser.cpython-38.pyc
U *�e�! � @ sp d Z ddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z zeZW n ek rp eefZY nX zddlmZ W n ek r� ddlmZ Y nX zddlmZ W n ek r� ddlmZ Y nX G d d � d e�ZzddlmZ W n ek �r Y nX G dd � d e�Ze� Zdd� Zddd�Zddd�Zddd�Zd dd�Z d!dd�Z!dd� 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 @ s e Zd ZdZddd�ZdS )r z*An html5lib HTML parser with lxml as tree.Fc K s t j| f|td�|�� d S �N)�strict�tree)�_HTMLParser�__init__r ��selfr �kwargs� r �E/opt/hc_python/lib64/python3.8/site-packages/lxml/html/html5parser.pyr s zHTMLParser.__init__N)F��__name__� __module__�__qualname__�__doc__r r r r r r s r )�XHTMLParserc @ s e Zd ZdZddd�ZdS )r z+An html5lib XHTML Parser with lxml as tree.Fc K s t j| f|td�|�� d S r )�_XHTMLParserr r r r r r r * s zXHTMLParser.__init__N)Fr r r r r r '