|
5 | 5 | #[\Since('8.4')]
|
6 | 6 | class Element extends \Dom\Node implements \Dom\ParentNode, \Dom\ChildNode
|
7 | 7 | {
|
8 |
| - /** @readonly */ |
| 8 | + /** |
| 9 | + * @readonly |
| 10 | + * @virtual |
| 11 | + */ |
9 | 12 | public ?string $namespaceURI;
|
10 |
| - /** @readonly */ |
| 13 | + /** |
| 14 | + * @readonly |
| 15 | + * @virtual |
| 16 | + */ |
11 | 17 | public ?string $prefix;
|
12 |
| - /** @readonly */ |
| 18 | + /** |
| 19 | + * @readonly |
| 20 | + * @virtual |
| 21 | + */ |
13 | 22 | public string $localName;
|
14 |
| - /** @readonly */ |
| 23 | + /** |
| 24 | + * @readonly |
| 25 | + * @virtual |
| 26 | + */ |
15 | 27 | public string $tagName;
|
| 28 | + /** @virtual */ |
16 | 29 | public string $id;
|
| 30 | + /** @virtual */ |
17 | 31 | public string $className;
|
18 | 32 | /** @readonly */
|
19 | 33 | public TokenList $classList;
|
20 | 34 | /** @implementation-alias DOMNode::hasAttributes */
|
21 | 35 | public function hasAttributes(): bool
|
22 | 36 | {
|
23 | 37 | }
|
24 |
| - /** @readonly */ |
| 38 | + /** |
| 39 | + * @readonly |
| 40 | + * @virtual |
| 41 | + */ |
25 | 42 | public NamedNodeMap $attributes;
|
26 | 43 | /** @implementation-alias DOMElement::getAttributeNames */
|
27 | 44 | public function getAttributeNames(): array
|
@@ -92,15 +109,30 @@ public function insertAdjacentElement(AdjacentPosition $where, Element $element)
|
92 | 109 | public function insertAdjacentText(AdjacentPosition $where, string $data): void
|
93 | 110 | {
|
94 | 111 | }
|
95 |
| - /** @readonly */ |
| 112 | + /** |
| 113 | + * @readonly |
| 114 | + * @virtual |
| 115 | + */ |
96 | 116 | public ?Element $firstElementChild;
|
97 |
| - /** @readonly */ |
| 117 | + /** |
| 118 | + * @readonly |
| 119 | + * @virtual |
| 120 | + */ |
98 | 121 | public ?Element $lastElementChild;
|
99 |
| - /** @readonly */ |
| 122 | + /** |
| 123 | + * @readonly |
| 124 | + * @virtual |
| 125 | + */ |
100 | 126 | public int $childElementCount;
|
101 |
| - /** @readonly */ |
| 127 | + /** |
| 128 | + * @readonly |
| 129 | + * @virtual |
| 130 | + */ |
102 | 131 | public ?Element $previousElementSibling;
|
103 |
| - /** @readonly */ |
| 132 | + /** |
| 133 | + * @readonly |
| 134 | + * @virtual |
| 135 | + */ |
104 | 136 | public ?Element $nextElementSibling;
|
105 | 137 | /** @implementation-alias DOMElement::setIdAttribute */
|
106 | 138 | public function setIdAttribute(string $qualifiedName, bool $isId): void
|
@@ -153,7 +185,9 @@ public function closest(string $selectors): ?Element
|
153 | 185 | public function matches(string $selectors): bool
|
154 | 186 | {
|
155 | 187 | }
|
| 188 | + /** @virtual */ |
156 | 189 | public string $innerHTML;
|
| 190 | + /** @virtual */ |
157 | 191 | public string $substitutedNodeValue;
|
158 | 192 | /** @return list<NamespaceInfo> */
|
159 | 193 | public function getInScopeNamespaces(): array
|
|
0 commit comments