Changeset 110

Show
Ignore:
Timestamp:
Mon Oct 17 07:38:49 2005
Author:
fredrikc
Message:

Changed to work with html documents that dont always use quotes around attribute values

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/transolution/filters/xml_lexing.py

    r27 r110  
    68 68 a("PI_CE" , "%(Name)s(?:%(PI_Tail)s)?")  
    69 69 a("EndTagCE" , "%(Name)s(?:%(S)s)?>?")  
    70   a("AttValSE" , "\"[^<\"]*\"|'[^<']*'")  
      70  
      71 # Changed to work with html documents that dont always use quotes around attribute values  
      72 #a("AttValSE" , "\"[^<\"]*\"|'[^<']*'")  
      73 a("AttValSE" , "\"[^<\"]*\"|'[^<']*'|[^<^>^\s]*")  
      74  
    71 75 a("ElemTagCE" ,  
    72 76     "%(Name)s(?:%(S)s%(Name)s(?:%(S)s)?=(?:%(S)s)?(?:%(AttValSE)s))*(?:%(S)s)?/?>?")