Home
last modified time | relevance | path

Searched refs:maybe_xhtml (Results 1 – 11 of 11) sorted by relevance

/dports/www/py-html5-parser/html5-parser-0.4.10/test/
H A Dnamespace.py18 def namespaces(self, parse_function=partial(parse, maybe_xhtml=True), tostring=tostring): argument
141 root = parse(markup, maybe_xhtml=True)
145 root = nsparse('<html xml:lang="fr" lang="es"><svg xml:lang="1">xxx', maybe_xhtml=True)
163 root = parse("""<p a:a="1" xmlns:a="a">""", maybe_xhtml=True)
168 xparse = partial(parse, maybe_xhtml=True)
183 root = parse(src, maybe_xhtml=True)
H A Dbasic.py77 root = parse(html, maybe_xhtml=True)
80 root = parse(html, maybe_xhtml=True)
82 root = parse('<title/><title>t</title></title></title><link href="h">', maybe_xhtml=True)
H A Dmalformed.py20 root = parse("<html><html />", maybe_xhtml=True)
/dports/www/py-html5-parser/html5-parser-0.4.10/src/
H A Das-libxml.c27 bool maybe_xhtml, sanitize_names; member
104 if (UNLIKELY(pd->maybe_xhtml && strcmp(aname, "lang") == 0)) { in create_attributes()
125 if (UNLIKELY(pd->maybe_xhtml && strncmp(aname, "xml:lang", 8) == 0)) { in create_attributes()
136 if (pd->maybe_xhtml) { in create_attributes()
152 if (pd->maybe_xhtml) { in create_attributes()
170 if (UNLIKELY(pd->maybe_xhtml && attr_name == pd->lang_attribute)) { in create_attributes()
221 if (pd->maybe_xhtml) { in create_element()
371 parse_data.maybe_xhtml = opts->gumbo_opts.use_xhtml_rules; in convert_gumbo_tree_to_libxml_tree()
388 if (parse_data.maybe_xhtml) { in convert_gumbo_tree_to_libxml_tree()
/dports/www/py-html5-parser/html5-parser-0.4.10/src/html5_parser/
H A D__init__.py128 maybe_xhtml=False, argument
213 namespace_elements=namespace_elements or maybe_xhtml,
215 maybe_xhtml=maybe_xhtml,
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/ebooks/oeb/polish/
H A Dparsing.py29 …root = html5_parser.parse(raw, maybe_xhtml=not discard_namespaces, line_number_attr=linenumber_att…
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/ebooks/mobi/reader/
H A Dmobi6.py208 …rse(self.processed_html, keep_doctype=False, namespace_elements=False, maybe_xhtml=False, sanitize…
218 … root = parse(self.processed_html, maybe_xhtml=False, keep_doctype=False, sanitize_names=True)
222 … root = parse(self.processed_html, maybe_xhtml=False, keep_doctype=False, sanitize_names=True)
227 … root = parse(self.processed_html, maybe_xhtml=False, keep_doctype=False, sanitize_names=True)
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/ebooks/metadata/
H A Dtoc.py32 root = parse(clean_xml_chars(data), maybe_xhtml=True, keep_doctype=False, sanitize_names=True)
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/ebooks/oeb/
H A Dparse_utils.py99 data = parse(clean_xml_chars(data), maybe_xhtml=True, keep_doctype=False, sanitize_names=True)
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/gui2/
H A Dcomments_editor.py735 root = parse(raw, maybe_xhtml=False, sanitize_names=True)
737 root = parse(clean_xml_chars(raw), maybe_xhtml=False, sanitize_names=True)
/dports/deskutils/calibre/calibre-src-5.34.0/src/calibre/srv/
H A Dopds.py120 …root = parse(raw, keep_doctype=False, namespace_elements=False, maybe_xhtml=False, sanitize_names=…