mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

ParentNode::$children returns a HTMLCollection of all directly descendant child elements of a container. I had to move around some properties such that the ParentNode property offsets are always at a fixed offset, to simplify the code. This also adds the necessary code to deal with GC cycles in HTMLCollections. Furthermore, we also disable cloning a HTMLCollection as that never worked and furthermore it also conflicts with the [[SameObject]] WebIDL requirement of $children.
24 lines
1.3 KiB
C
24 lines
1.3 KiB
C
/*
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| https://www.php.net/license/3_01.txt |
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Niels Dossche <nielsdos@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef PHP_HTML_COLLECTION_H
|
|
#define PHP_HTML_COLLECTION_H
|
|
|
|
zval *dom_html_collection_read_dimension(zend_object *object, zval *offset, int type, zval *rv);
|
|
int dom_html_collection_has_dimension(zend_object *object, zval *member, int check_empty);
|
|
HashTable *dom_html_collection_get_gc(zend_object *object, zval **table, int *n);
|
|
|
|
#endif
|