Lines Matching refs:document
123 lxb_html_document_t *document = lxb_html_parse_chunk_begin(parser); in lxb_html_parse() local
124 if (document == NULL) { in lxb_html_parse()
138 return document; in lxb_html_parse()
142 lxb_html_document_interface_destroy(document); in lxb_html_parse()
152 parser->tree->document, in lxb_html_parse_fragment()
160 lxb_html_document_t *document, in lxb_html_parse_fragment_by_tag_id() argument
164 lxb_html_parse_fragment_chunk_begin(parser, document, tag_id, ns); in lxb_html_parse_fragment_by_tag_id()
179 lxb_html_document_t *document, in lxb_html_parse_fragment_chunk_begin() argument
191 new_doc = lxb_html_document_interface_create(document); in lxb_html_parse_fragment_chunk_begin()
199 if (document == NULL) { in lxb_html_parse_fragment_chunk_begin()
342 if (lxb_html_document_is_original(parser->tree->document) == false) { in lxb_html_parse_fragment_chunk_destroy()
344 doc = lxb_dom_interface_node(parser->tree->document)->owner_document; in lxb_html_parse_fragment_chunk_destroy()
348 lxb_html_document_interface_destroy(parser->tree->document); in lxb_html_parse_fragment_chunk_destroy()
350 parser->tree->document = NULL; in lxb_html_parse_fragment_chunk_destroy()
356 lxb_html_document_t *document) in lxb_html_parse_chunk_prepare() argument
363 lxb_html_tokenizer_tags_set(parser->tkz, document->dom_document.tags); in lxb_html_parse_chunk_prepare()
364 lxb_html_tokenizer_attrs_set(parser->tkz, document->dom_document.attrs); in lxb_html_parse_chunk_prepare()
365 lxb_html_tokenizer_attrs_mraw_set(parser->tkz, document->dom_document.text); in lxb_html_parse_chunk_prepare()
367 parser->status = lxb_html_tree_begin(parser->tree, document); in lxb_html_parse_chunk_prepare()
378 lxb_html_document_t *document; in lxb_html_parse_chunk_begin() local
384 document = lxb_html_document_interface_create(NULL); in lxb_html_parse_chunk_begin()
385 if (document == NULL) { in lxb_html_parse_chunk_begin()
389 return lxb_html_document_destroy(document); in lxb_html_parse_chunk_begin()
392 document->dom_document.scripting = parser->tree->scripting; in lxb_html_parse_chunk_begin()
394 parser->status = lxb_html_parse_chunk_prepare(parser, document); in lxb_html_parse_chunk_begin()
396 return lxb_html_document_destroy(document); in lxb_html_parse_chunk_begin()
399 return document; in lxb_html_parse_chunk_begin()