관리-도구
편집 파일: html5parser.cpython-37.pyc
B �'�Y�! � @ sp d Z ddlZddlZddlmZ ddlmZ ddlm Z ddl mZmZm Z yeZW n ek rp eefZY nX yddlmZ W n ek r� ddlmZ Y nX yddlmZ W n ek r� ddlmZ Y nX G d d � d e�ZyddlmZ 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 �H/opt/alt/python37/lib64/python3.7/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 )N)r r )�_XHTMLParserr r )r r r r r r r * s zXHTMLParser.__init__N)F)r r r r r r r r r r '