Added note to parser docs about HtmlParser breaking with invalid HTML. Closes #60.

This commit is contained in:
Jannis Leidel
2011-09-07 13:34:44 +02:00
parent ed831d5446
commit 39c291ca83

View File

@@ -265,6 +265,13 @@ won't be necessary to change the default parser.
The other two included parsers are considerably slower and should only be The other two included parsers are considerably slower and should only be
used if absolutely necessary. used if absolutely necessary.
.. warning::
In some cases the ``compressor.parser.HtmlParser`` parser isn't able to
parse invalid HTML in JavaScript or CSS content. As a workaround you
should use one of the more forgiving parsers, e.g. the
``BeautifulSoupParser``.
The backends included in Django Compressor: The backends included in Django Compressor:
- ``compressor.parser.AutoSelectParser`` - ``compressor.parser.AutoSelectParser``