Lines Matching refs:content
45 if (node->content) { in dom_html5_serialize_comment()
46 TRY(ctx->write_string(ctx->application_data, (const char*) node->content)); in dom_html5_serialize_comment()
56 if (node->content) { in dom_html5_serialize_processing_instruction()
57 TRY(ctx->write_string(ctx->application_data, (const char *) node->content)); in dom_html5_serialize_processing_instruction()
70 static zend_result dom_html5_escape_string(dom_html5_serialize_context *ctx, const char *content, b… in dom_html5_escape_string() argument
72 const char *last_output = content; in dom_html5_escape_string()
78 size_t chunk_length = strcspn(content, mask); in dom_html5_escape_string()
80 content += chunk_length; in dom_html5_escape_string()
81 if (*content == '\0') { in dom_html5_escape_string()
85 switch (*content) { in dom_html5_escape_string()
88 TRY(ctx->write_string_len(ctx->application_data, last_output, content - last_output)); in dom_html5_escape_string()
90 last_output = content + 1; in dom_html5_escape_string()
96 if (content[1] == '\xA0') { in dom_html5_escape_string()
97 TRY(ctx->write_string_len(ctx->application_data, last_output, content - last_output)); in dom_html5_escape_string()
99 content++; /* Consume A0 too */ in dom_html5_escape_string()
100 last_output = content + 1; in dom_html5_escape_string()
107 TRY(ctx->write_string_len(ctx->application_data, last_output, content - last_output)); in dom_html5_escape_string()
109 last_output = content + 1; in dom_html5_escape_string()
115 TRY(ctx->write_string_len(ctx->application_data, last_output, content - last_output)); in dom_html5_escape_string()
117 last_output = content + 1; in dom_html5_escape_string()
121 TRY(ctx->write_string_len(ctx->application_data, last_output, content - last_output)); in dom_html5_escape_string()
123 last_output = content + 1; in dom_html5_escape_string()
128 content++; in dom_html5_escape_string()
131 return ctx->write_string_len(ctx->application_data, last_output, content - last_output); in dom_html5_escape_string()
136 if (!node->content) { in dom_html5_serialize_text_node()
153 return ctx->write_string(ctx->application_data, (const char *) node->content); in dom_html5_serialize_text_node()
157 return dom_html5_escape_string(ctx, (const char *) node->content, false); in dom_html5_serialize_text_node()
210 if (child->content != NULL) { in dom_html5_serialize_element_start()
211 TRY(dom_html5_escape_string(ctx, (const char *) child->content, true)); in dom_html5_serialize_element_start()