Home
last modified time | relevance | path

Searched refs:selector (Results 1 – 25 of 32) sorted by relevance

12

/php-src/ext/dom/lexbor/lexbor/css/selectors/
H A Dselector.c120 return selector; in lxb_css_selector_create()
131 lxb_selector_destroy_map[selector->type](selector, memory); in lxb_css_selector_destroy()
152 selector->next->prev = selector->prev; in lxb_css_selector_remove()
156 selector->prev->next = selector->next; in lxb_css_selector_remove()
159 if (selector->list->first == selector) { in lxb_css_selector_remove()
160 selector->list->first = selector->next; in lxb_css_selector_remove()
163 if (selector->list->last == selector) { in lxb_css_selector_remove()
164 selector->list->last = selector->prev; in lxb_css_selector_remove()
376 selector = selector->next; in lxb_css_selector_serialize_chain()
398 selector = selector->next; in lxb_css_selector_serialize_chain()
[all …]
H A Dstate.c1056 lxb_css_selector_t *selector; in lxb_css_selectors_state_hash() local
1091 lxb_css_selector_t *selector; in lxb_css_selectors_state_class() local
1118 lxb_css_selector_t *selector; in lxb_css_selectors_state_element_ns() local
1132 selector->name.data[0] = '*'; in lxb_css_selectors_state_element_ns()
1134 selector->name.length = 1; in lxb_css_selectors_state_element_ns()
1151 lxb_css_selector_t *selector; in lxb_css_selectors_state_element() local
1175 lxb_css_selector_t *selector; in lxb_css_selectors_state_attribute() local
1245 selector->ns = selector->name; in lxb_css_selectors_state_attribute()
1407 selector->ns = selector->name; in lxb_css_selectors_state_ns_ident()
1424 selector->ns = selector->name; in lxb_css_selectors_state_ns_ident()
[all …]
H A Dselector.h184 lxb_css_selector_destroy(lxb_css_selector_t *selector);
187 lxb_css_selector_destroy_chain(lxb_css_selector_t *selector);
190 lxb_css_selector_remove(lxb_css_selector_t *selector);
212 lxb_css_selector_serialize(lxb_css_selector_t *selector,
216 lxb_css_selector_serialize_chain(lxb_css_selector_t *selector,
220 lxb_css_selector_serialize_chain_char(lxb_css_selector_t *selector,
240 lxb_css_selector_combinator(lxb_css_selector_t *selector, size_t *out_length);
244 lxb_css_selector_t *selector);
H A Dselectors.h92 lxb_css_selector_t *selector) in lxb_css_selectors_append_next() argument
95 lxb_css_selector_append_next(selectors->list_last->last, selector); in lxb_css_selectors_append_next()
98 selectors->list_last->first = selector; in lxb_css_selectors_append_next()
101 selectors->list_last->last = selector; in lxb_css_selectors_append_next()
/php-src/ext/dom/tests/modern/css_selectors/
H A Dpseudo_classes_no_op.phpt43 Code 12 Invalid selector (Selectors. Not supported: default)
51 Code 12 Invalid selector (Selectors. Not supported: fullscreen)
55 Code 12 Invalid selector (Selectors. Not supported: in-range)
59 Code 12 Invalid selector (Selectors. Not supported: invalid)
63 Code 12 Invalid selector (Selectors. Not supported: past)
65 Code 12 Invalid selector (Selectors. Not supported: future)
67 Code 12 Invalid selector (Selectors. Not supported: scope)
69 Code 12 Invalid selector (Selectors. Not supported: target)
75 Code 12 Invalid selector (Selectors. Not supported: valid)
77 Code 12 Invalid selector (Selectors. Not supported: visited)
[all …]
H A Dtest_utils.inc3 function test_helper(DOM\ParentNode $dom, string $selector, bool $only_name = false)
5 echo "--- Selector: $selector ---\n";
7 $all = $dom->querySelectorAll($selector);
8 $single = $dom->querySelector($selector);
29 if (in_array($node, $list, true) !== $node->matches($selector)) {
30 var_dump($node, $selector, in_array($node, $list, true), $node->matches($selector));
37 function test_failure(DOM\ParentNode $dom, string $selector)
39 echo "--- Selector: $selector ---\n";
42 var_dump(count($dom->querySelectorAll($selector)));
H A Dpseudo_elements.phpt33 Code 12 Invalid selector (Selectors. Not supported: after)
35 Code 12 Invalid selector (Selectors. Not supported: before)
37 Code 12 Invalid selector (Selectors. Not supported: backdrop)
39 Code 12 Invalid selector (Selectors. Not supported: first-letter)
41 Code 12 Invalid selector (Selectors. Not supported: first-line)
43 Code 12 Invalid selector (Selectors. Not supported: grammar-error)
47 Code 12 Invalid selector (Selectors. Not supported: marker)
49 Code 12 Invalid selector (Selectors. Not supported: placeholder)
51 Code 12 Invalid selector (Selectors. Not supported: selection)
53 Code 12 Invalid selector (Selectors. Not supported: spelling-error)
[all …]
H A Dmatches_invalid_selector.phpt2 Test DOM\Element::matches() method: invalid selector
18 Invalid selector (Selectors. Unexpected token: @invalid)
H A Dclosest_invalid_selector.phpt2 Test DOM\Element::closest() method: invalid selector
18 Invalid selector (Selectors. Unexpected token: @invalid)
H A Dclosest.phpt21 function test($el, $selector) {
22 echo "--- Selector: $selector ---\n";
23 var_dump($el->closest($selector)?->getAttribute('xml:id'));
H A Dpseudo_classes_dir.phpt25 Code 12 Invalid selector (Selectors. Not supported: dir)
27 Code 12 Invalid selector (Selectors. Not supported: dir)
H A Dpseudo_classes_lang.phpt25 Code 12 Invalid selector (Selectors. Not supported: lang)
27 Code 12 Invalid selector (Selectors. Not supported: lang)
H A Dpseudo_classes_nth_col.phpt34 Code 12 Invalid selector (Selectors. Not supported: nth-col)
36 Code 12 Invalid selector (Selectors. Not supported: nth-last-col)
H A Dpseudo_classes_blank.phpt23 :blank selector is not implemented because CSSWG has not yet decided its semantics (https://github.…
H A Dnamespaces.phpt54 Code 12 Invalid selector (Selectors. Unexpected token: *)
H A Dcombinators.phpt113 Dom\Document::querySelectorAll(): Argument #1 ($selectors) contains an unsupported selector
/php-src/ext/dom/lexbor/lexbor/selectors-adapted/
H A Dselectors.c347 entry->selector = list->last; in lxb_selectors_find()
376 entry->selector = list->last; in lxb_selectors_match_node()
502 selector = entry->selector; in lxb_selectors_state_find()
505 pseudo = &selector->u.pseudo; in lxb_selectors_state_find()
623 next->selector = selector->list->next->last; in lxb_selectors_state_find_check()
640 selector = entry->selector; in lxb_selectors_state_find_check()
682 if (selector->prev == NULL) { in lxb_selectors_state_find_check()
705 next->selector = selector->prev; in lxb_selectors_state_find_check()
1090 selector = current->parent->last->selector; in lxb_selectors_state_after_nth_child()
1091 pseudo = &selector->u.pseudo; in lxb_selectors_state_after_nth_child()
[all …]
H A Dselectors.h86 const lxb_css_selector_t *selector; member
247 return selectors->current->entry->selector->list; in lxb_selectors_selector()
/php-src/ext/dom/lexbor/lexbor/selectors/
H A Dselectors.c272 entry->selector = list->last; in lxb_selectors_find()
304 entry->selector = list->last; in lxb_selectors_match_node()
434 selector = entry->selector; in lxb_selectors_state_find()
567 next->selector = selector->list->next->last; in lxb_selectors_state_find_check()
584 selector = entry->selector; in lxb_selectors_state_find_check()
653 next->selector = selector->prev; in lxb_selectors_state_find_check()
1038 selector = current->parent->last->selector; in lxb_selectors_state_after_nth_child()
1107 switch (selector->type) { in lxb_selectors_match()
1159 selector->name.data, selector->name.length); in lxb_selectors_match_element()
1183 src = &selector->name; in lxb_selectors_match_id()
[all …]
H A Dselectors.h76 const lxb_css_selector_t *selector; member
257 return selectors->current->entry->selector->list; in lxb_selectors_selector()
/php-src/main/
H A Dphp_scandir.c52 PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const stru… in php_scandir()
72 if (selector && (*selector)(dp) == 0) { in php_scandir()
H A Dphp_scandir.h37 PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const stru…
/php-src/ext/pcre/tests/
H A Dbug76514.phpt350 "name": "symfony/css-selector",
473 "symfony/css-selector": "v2.8.2",
532 "symfony/css-selector": "v2.8.2",
/php-src/ext/dom/lexbor/patches/
H A D0006-Patch-out-unused-CSS-style-code.patch126 style->selector, lxb_html_document_style_cb, style);
139 style->selector,
165 style->selector,
H A DREADME.md24 A PHP specific patch to remove CSS style and selector bindings from the Lexbor document.

Completed in 77 milliseconds

12