3
�Pfv6 � @ s� d dl mZmZmZ d dlmZ ddlmZmZm Z dZ
ee�dfeeee d dfg�B �dfeeee d d fe d d
fg�B �dfee d dfe d dfg�dfee d dfe d d
fg�dfd�Z
G dd� de�ZG dd� de�ZG dd� de�ZdS )� )�absolute_import�division�unicode_literals)� text_type� )�scopingElements�tableInsertModeElements�
namespacesNF�html�buttonZolZul�table�optgroup�optionT)Nr �listr Zselectc @ s^ e Zd Zdd� Zdd� Zdd� Zdd� Zdd
d�Zdd
� Zdd� Z dd� Z
dd� Zdd� Zd S )�Nodec C s( || _ d| _d| _i | _g | _g | _dS )a6 Node representing an item in the tree.
name - The tag name associated with the node
parent - The parent of the current node (or None for the document node)
value - The value of the current node (applies to text nodes and
comments
attributes - a dict holding name, value pairs for attributes of the node
childNodes - a list of child nodes of the current node. This must
include all elements but not necessarily other node types
_flags - A list of miscellaneous flags that can be set on the node
N)�name�parent�value�
attributes�
childNodesZ_flags)�selfr � r �/usr/lib/python3.6/base.py�__init__ s z
Node.__init__c C s: dj dd� | jj� D ��}|r,d| j|f S d| j S d S )N� c S s g | ]\}}d ||f �qS )z%s="%s"r )�.0r r r r r �