summaryrefslogtreecommitdiff
path: root/src/lxml/includes/htmlparser.pxd
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-03-20 20:17:01 +0100
committerStefan Behnel <stefan_ml@behnel.de>2014-03-20 20:17:01 +0100
commit40ce3370563a9bcbdd154cff8bd693cc21cc827f (patch)
treed3d3bfffba56ffd3fa591088b9fb536280507f54 /src/lxml/includes/htmlparser.pxd
parent9b4a773262171280cf083c632c3549519acd04ee (diff)
downloadpython-lxml-40ce3370563a9bcbdd154cff8bd693cc21cc827f.tar.gz
add new libxml2 HTML parser flags to declarations
Diffstat (limited to 'src/lxml/includes/htmlparser.pxd')
-rw-r--r--src/lxml/includes/htmlparser.pxd6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lxml/includes/htmlparser.pxd b/src/lxml/includes/htmlparser.pxd
index 2a0ad1e6..1dc7c361 100644
--- a/src/lxml/includes/htmlparser.pxd
+++ b/src/lxml/includes/htmlparser.pxd
@@ -15,6 +15,12 @@ cdef extern from "libxml/HTMLparser.h":
# libxml2 2.6.21+ only:
HTML_PARSE_RECOVER # Relaxed parsing
HTML_PARSE_COMPACT # compact small text nodes
+ # libxml2 2.7.7+ only:
+ HTML_PARSE_NOIMPLIED # Do not add implied html/body... elements
+ # libxml2 2.7.8+ only:
+ HTML_PARSE_NODEFDTD # do not default a doctype if not found
+ # libxml2 2.8.0+ only:
+ XML_PARSE_IGNORE_ENC # ignore internal document encoding hint
xmlSAXHandlerV1 htmlDefaultSAXHandler