
    wdf                     L    d Z 	 eZn# e$ r eZeZY nw xY w G d de          ZdS )a  
This file is part of Dominate.

Dominate is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.

Dominate is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General
Public License along with Dominate.  If not, see
<http://www.gnu.org/licenses/>.
c                   :    e Zd ZdZed             Zd Zd Zd ZdS )dom1corez
  Implements the Document Object Model (Core) Level 1

  http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/
  http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html
  c                     | j         S )zA
    DOM API: Returns the parent tag of the current element.
    )parent)selfs    V/var/www/book.euthymeo.com/html/venv/lib/python3.11/site-packages/dominate/dom1core.py
parentNodezdom1core.parentNode!   s    
 ;    c                     |                      |          }t          |          dk    rt          d|z            |r|d         S dS )zA
    DOM API: Returns single element with matching id value.
    )id   zMultiple tags with id "%s".    N)getlen
ValueError)r   r   resultss      r   getElementByIdzdom1core.getElementById(   sQ     hh"hooG
7||a4r9:::	 QZTr	   c                 ~    t          |t                    r'|                     |                                          S dS )z4
    DOM API: Returns all tags that match name.
    N)
isinstance
basestringr   lower)r   names     r   getElementsByTagNamezdom1core.getElementsByTagName4   s5     $
## XXdjjll###Tr	   c                 0    |                      |           | S )z?
    DOM API: Add an item to the end of the children list.
    )add)r   objs     r   appendChildzdom1core.appendChild=   s     	HHSMMMKr	   N)	__name__
__module____qualname____doc__propertyr   r   r   r    r	   r   r   r      sf            8
 
 
      r	   r   N)__license__r   	NameErrorstrunicodeobjectr   r"   r	   r   <module>r(      su   $**   *'''
( ( ( ( (v ( ( ( ( (s    	