php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
template_element.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 Alexander Borisov
3 *
4 * Author: Alexander Borisov <borisov@lexbor.com>
5 */
6
9
10
13{
15
16 element = lexbor_mraw_calloc(document->dom_document.mraw,
18 if (element == NULL) {
19 return NULL;
20 }
21
23
26
28 if (element->content == NULL) {
30 }
31
32 element->content->node.ns = LXB_NS_HTML;
33 element->content->host = lxb_dom_interface_element(element);
34
35 return element;
36}
37
lxb_dom_document_fragment_t * lxb_dom_document_fragment_interface_destroy(lxb_dom_document_fragment_t *document_fragment)
lxb_dom_document_fragment_t * lxb_dom_document_fragment_interface_create(lxb_dom_document_t *document)
#define lxb_dom_interface_element(obj)
Definition interface.h:28
#define lxb_dom_interface_node(obj)
Definition interface.h:31
struct lxb_dom_node lxb_dom_node_t
Definition interface.h:38
@ LXB_DOM_NODE_TYPE_ELEMENT
Definition node.h:25
#define NULL
Definition gdcache.h:45
struct lxb_html_template_element lxb_html_template_element_t
Definition interface.h:159
struct lxb_html_document lxb_html_document_t
Definition interface.h:95
lxb_inline lxb_dom_document_t * lxb_html_document_original_ref(lxb_html_document_t *document)
Definition document.h:218
lxb_dom_node_t * lxb_dom_node_interface_destroy(lxb_dom_node_t *node)
Definition node.c:124
void * lexbor_mraw_calloc(lexbor_mraw_t *mraw, size_t size)
Definition mraw.c:227
@ LXB_NS_HTML
Definition const.h:26
lexbor_mraw_t * mraw
Definition document.h:53
uintptr_t ns
Definition node.h:48
lxb_dom_document_t * owner_document
Definition node.h:50
lxb_dom_node_type_t type
Definition node.h:59
lxb_dom_document_t dom_document
Definition document.h:58
lxb_dom_document_fragment_t * content
lxb_html_template_element_t * lxb_html_template_element_interface_destroy(lxb_html_template_element_t *template_element)
lxb_html_template_element_t * lxb_html_template_element_interface_create(lxb_html_document_t *document)
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)