• Guido van Rossum's avatar
    More special cases when generating backwards compatible "html": · 9bb718a2
    Guido van Rossum authored
    - Only minimize empty elements when the content model is empty,
      keeping an explicit list of which elements have an empty content
      model (e.g. <img>, etc.).  This checks whether the tagname is in an
      explicit list of such elements; the check is case insensitive.
    
    - Minimize certain attributes that are considered Boolean by HTML,
      e.g. ismap.  Again, this does a case-insensitive check whether the
      attribute name is in a list of known Boolean attributes.
    
    Note: this should really be refactored, making HTML support a subclass
    rather than a keyword argument.  Later...
    9bb718a2
TALInterpreter.py 10.6 KB