Your IP : 216.73.216.213


Current Path : /opt/alt/python27/lib/python2.7/site-packages/html5lib/filters/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/html5lib/filters/lint.pyo

�
�y�Rc@`s�ddlmZmZmZddlmZeZddlmZddlm	Z	m
Z
mZddlmZdj
e�Zd	efd
��YZdejfd��YZd
S(i(tabsolute_importtdivisiontunicode_literals(tgettexti(t_basei(t
cdataElementstrcdataElementstvoidElements(tspaceCharactersut	LintErrorcB`seZRS((t__name__t
__module__(((sF/opt/alt/python27/lib/python2.7/site-packages/html5lib/filters/lint.pyR	
stFiltercB`seZd�ZRS(c	c`s�g}d}xqtjj|�D]]}|d}|d&kr!|d}|dkrqttd�i|d6��nt|t�s�ttd�i|d6��n|s�ttd	���n|dkr�|tkr�ttd
�i|d6��n<|dkr/|tkr/ttd�i|dd6��n|dkrK|j|�nx�|dD]�\}}t|t�s�ttd
�i|d6��n|s�ttd���nt|t�sVttd�i|d6��qVqVW|t	kr�d}qw|t
kr	d}qw|dkrwd}qwnV|dkr�|d}t|t�sfttd�i|d6��n|s�ttd	���n|tkr�ttd�i|d6��n|j�}||kr�ttd�i|d6|d6��nd}n�|dkr%|dkrwttd���qwnR|d'kr�|d}t|t�sjttd
�i|d6��n|s�ttd�i|d6��n|dkrw|jt
�}|r�ttd�i|d 6��q�qwn�|d!krK|d}|dkrttd"�i|d6��nt|t�swttd�i|d6��qwn,|d(krZnttd%�i|d6��|VqWdS()NuPCDATAutypeuStartTaguEmptyTagunameu2StartTag not in PCDATA content model flag: %(tag)sutagu!Tag name is not a string: %(tag)ruEmpty tag nameu0Void element reported as StartTag token: %(tag)su4Non-void element reported as EmptyTag token: %(tag)sudatau(Attribute name is not a string: %(name)ruEmpty attribute nameu*Attribute value is not a string: %(value)ruvalueuCDATAuRCDATAu	plaintextu	PLAINTEXTuEndTagu.Void element reported as EndTag token: %(tag)su4EndTag (%(end)s) does not match StartTag (%(start)s)uendustartuCommentu(Comment not in PCDATA content model flagu
CharactersuSpaceCharactersu%(type)s token with empty datau@Non-space character(s) found in SpaceCharacters token: %(token)rutokenuDoctypeu2Doctype not in PCDATA content model flag: %(name)su
ParseErroruSerializeErroruUnknown token type: %(type)s(uStartTaguEmptyTag(u
CharactersuSpaceCharacters(u
ParseErroruSerializeError(RRt__iter__R	t_t
isinstancetstrRtappendRRtpoptstripR(	tselft
open_elementstcontentModelFlagttokenttypetnametvaluet
start_nametdata((sF/opt/alt/python27/lib/python2.7/site-packages/html5lib/filters/lint.pyR
s�

   $ $		
  '	
  &
 #(R
RR
(((sF/opt/alt/python27/lib/python2.7/site-packages/html5lib/filters/lint.pyRsN(t
__future__RRRRRtRt	constantsRRRRtjoint	ExceptionR	R(((sF/opt/alt/python27/lib/python2.7/site-packages/html5lib/filters/lint.pyt<module>s