| 1 |
<?php |
| 2 |
|
| 3 |
// AUTOMATICALLY GENERATED. DO NOT EDIT. |
| 4 |
// Use `composer build` to regenerate. |
| 5 |
|
| 6 |
namespace Wikimedia\IDLeDOM; |
| 7 |
|
| 8 |
/** |
| 9 |
* HTMLInputElement |
| 10 |
* |
| 11 |
* @see https://dom.spec.whatwg.org/#interface-htmlinputelement |
| 12 |
* |
| 13 |
* @property int $nodeType |
| 14 |
* @property string $nodeName |
| 15 |
* @property string $baseURI |
| 16 |
* @property bool $isConnected |
| 17 |
* @property Document|null $ownerDocument |
| 18 |
* @property Node|null $parentNode |
| 19 |
* @property Element|null $parentElement |
| 20 |
* @property NodeList $childNodes |
| 21 |
* @property Node|null $firstChild |
| 22 |
* @property Node|null $lastChild |
| 23 |
* @property Node|null $previousSibling |
| 24 |
* @property Node|null $nextSibling |
| 25 |
* @property ?string $nodeValue |
| 26 |
* @property ?string $textContent |
| 27 |
* @property string $innerHTML |
| 28 |
* @property Element|null $previousElementSibling |
| 29 |
* @property Element|null $nextElementSibling |
| 30 |
* @property HTMLCollection $children |
| 31 |
* @property Element|null $firstElementChild |
| 32 |
* @property Element|null $lastElementChild |
| 33 |
* @property int $childElementCount |
| 34 |
* @property HTMLSlotElement|null $assignedSlot |
| 35 |
* @property ?string $namespaceURI |
| 36 |
* @property ?string $prefix |
| 37 |
* @property string $localName |
| 38 |
* @property string $tagName |
| 39 |
* @property string $id |
| 40 |
* @property string $className |
| 41 |
* @property DOMTokenList $classList |
| 42 |
* @property string $slot |
| 43 |
* @property NamedNodeMap $attributes |
| 44 |
* @property ShadowRoot|null $shadowRoot |
| 45 |
* @property string $outerHTML |
| 46 |
* @property CSSStyleDeclaration $style |
| 47 |
* @property string $contentEditable |
| 48 |
* @property string $enterKeyHint |
| 49 |
* @property bool $isContentEditable |
| 50 |
* @property string $inputMode |
| 51 |
* @property EventHandlerNonNull|callable|null $onload |
| 52 |
* @property DOMStringMap $dataset |
| 53 |
* @property string $nonce |
| 54 |
* @property int $tabIndex |
| 55 |
* @property string $title |
| 56 |
* @property string $lang |
| 57 |
* @property bool $translate |
| 58 |
* @property string $dir |
| 59 |
* @property bool $hidden |
| 60 |
* @property string $accessKey |
| 61 |
* @property string $accessKeyLabel |
| 62 |
* @property bool $draggable |
| 63 |
* @property bool $spellcheck |
| 64 |
* @property string $autocapitalize |
| 65 |
* @property string $innerText |
| 66 |
* @property Element|null $offsetParent |
| 67 |
* @property int $offsetTop |
| 68 |
* @property int $offsetLeft |
| 69 |
* @property int $offsetWidth |
| 70 |
* @property int $offsetHeight |
| 71 |
* @property string $accept |
| 72 |
* @property string $alt |
| 73 |
* @property string $autocomplete |
| 74 |
* @property bool $autofocus |
| 75 |
* @property bool $defaultChecked |
| 76 |
* @property bool $checked |
| 77 |
* @property string $dirName |
| 78 |
* @property bool $disabled |
| 79 |
* @property HTMLFormElement|null $form |
| 80 |
* @property string $formEnctype |
| 81 |
* @property string $formMethod |
| 82 |
* @property bool $formNoValidate |
| 83 |
* @property string $formTarget |
| 84 |
* @property bool $indeterminate |
| 85 |
* @property HTMLElement|null $list |
| 86 |
* @property string $max |
| 87 |
* @property int $maxLength |
| 88 |
* @property string $min |
| 89 |
* @property int $minLength |
| 90 |
* @property bool $multiple |
| 91 |
* @property string $name |
| 92 |
* @property string $pattern |
| 93 |
* @property string $placeholder |
| 94 |
* @property bool $readOnly |
| 95 |
* @property bool $required |
| 96 |
* @property int $size |
| 97 |
* @property string $src |
| 98 |
* @property string $step |
| 99 |
* @property string $type |
| 100 |
* @property string $defaultValue |
| 101 |
* @property string $value |
| 102 |
* @property float $valueAsNumber |
| 103 |
* @property bool $willValidate |
| 104 |
* @property ValidityState $validity |
| 105 |
* @property string $validationMessage |
| 106 |
* @property NodeList|null $labels |
| 107 |
* @property ?int $selectionStart |
| 108 |
* @property ?int $selectionEnd |
| 109 |
* @property ?string $selectionDirection |
| 110 |
* @property string $align |
| 111 |
* @property string $useMap |
| 112 |
* @phan-forbid-undeclared-magic-properties |
| 113 |
*/ |
| 114 |
interface HTMLInputElement extends HTMLElement { |
| 115 |
// Direct parent: HTMLElement |
| 116 |
|
| 117 |
/** |
| 118 |
* @return string |
| 119 |
*/ |
| 120 |
public function getAccept(): string; |
| 121 |
|
| 122 |
/** |
| 123 |
* @param string $val |
| 124 |
*/ |
| 125 |
public function setAccept( string $val ): void; |
| 126 |
|
| 127 |
/** |
| 128 |
* @return string |
| 129 |
*/ |
| 130 |
public function getAlt(): string; |
| 131 |
|
| 132 |
/** |
| 133 |
* @param string $val |
| 134 |
*/ |
| 135 |
public function setAlt( string $val ): void; |
| 136 |
|
| 137 |
/** |
| 138 |
* @return string |
| 139 |
*/ |
| 140 |
public function getAutocomplete(): string; |
| 141 |
|
| 142 |
/** |
| 143 |
* @param string $val |
| 144 |
*/ |
| 145 |
public function setAutocomplete( string $val ): void; |
| 146 |
|
| 147 |
/** |
| 148 |
* @return bool |
| 149 |
*/ |
| 150 |
public function getAutofocus(): bool; |
| 151 |
|
| 152 |
/** |
| 153 |
* @param bool $val |
| 154 |
*/ |
| 155 |
public function setAutofocus( bool $val ): void; |
| 156 |
|
| 157 |
/** |
| 158 |
* @return bool |
| 159 |
*/ |
| 160 |
public function getDefaultChecked(): bool; |
| 161 |
|
| 162 |
/** |
| 163 |
* @param bool $val |
| 164 |
*/ |
| 165 |
public function setDefaultChecked( bool $val ): void; |
| 166 |
|
| 167 |
/** |
| 168 |
* @return bool |
| 169 |
*/ |
| 170 |
public function getChecked(): bool; |
| 171 |
|
| 172 |
/** |
| 173 |
* @param bool $val |
| 174 |
*/ |
| 175 |
public function setChecked( bool $val ): void; |
| 176 |
|
| 177 |
/** |
| 178 |
* @return string |
| 179 |
*/ |
| 180 |
public function getDirName(): string; |
| 181 |
|
| 182 |
/** |
| 183 |
* @param string $val |
| 184 |
*/ |
| 185 |
public function setDirName( string $val ): void; |
| 186 |
|
| 187 |
/** |
| 188 |
* @return bool |
| 189 |
*/ |
| 190 |
public function getDisabled(): bool; |
| 191 |
|
| 192 |
/** |
| 193 |
* @param bool $val |
| 194 |
*/ |
| 195 |
public function setDisabled( bool $val ): void; |
| 196 |
|
| 197 |
/** |
| 198 |
* @return HTMLFormElement|null |
| 199 |
*/ |
| 200 |
public function getForm(); |
| 201 |
|
| 202 |
/** |
| 203 |
* @return string |
| 204 |
*/ |
| 205 |
public function getFormEnctype(): string; |
| 206 |
|
| 207 |
/** |
| 208 |
* @param string $val |
| 209 |
*/ |
| 210 |
public function setFormEnctype( string $val ): void; |
| 211 |
|
| 212 |
/** |
| 213 |
* @return string |
| 214 |
*/ |
| 215 |
public function getFormMethod(): string; |
| 216 |
|
| 217 |
/** |
| 218 |
* @param string $val |
| 219 |
*/ |
| 220 |
public function setFormMethod( string $val ): void; |
| 221 |
|
| 222 |
/** |
| 223 |
* @return bool |
| 224 |
*/ |
| 225 |
public function getFormNoValidate(): bool; |
| 226 |
|
| 227 |
/** |
| 228 |
* @param bool $val |
| 229 |
*/ |
| 230 |
public function setFormNoValidate( bool $val ): void; |
| 231 |
|
| 232 |
/** |
| 233 |
* @return string |
| 234 |
*/ |
| 235 |
public function getFormTarget(): string; |
| 236 |
|
| 237 |
/** |
| 238 |
* @param string $val |
| 239 |
*/ |
| 240 |
public function setFormTarget( string $val ): void; |
| 241 |
|
| 242 |
/** |
| 243 |
* @return bool |
| 244 |
*/ |
| 245 |
public function getIndeterminate(): bool; |
| 246 |
|
| 247 |
/** |
| 248 |
* @param bool $val |
| 249 |
*/ |
| 250 |
public function setIndeterminate( bool $val ): void; |
| 251 |
|
| 252 |
/** |
| 253 |
* @return HTMLElement|null |
| 254 |
*/ |
| 255 |
public function getList(); |
| 256 |
|
| 257 |
/** |
| 258 |
* @return string |
| 259 |
*/ |
| 260 |
public function getMax(): string; |
| 261 |
|
| 262 |
/** |
| 263 |
* @param string $val |
| 264 |
*/ |
| 265 |
public function setMax( string $val ): void; |
| 266 |
|
| 267 |
/** |
| 268 |
* @return int |
| 269 |
*/ |
| 270 |
public function getMaxLength(): int; |
| 271 |
|
| 272 |
/** |
| 273 |
* @param int $val |
| 274 |
*/ |
| 275 |
public function setMaxLength( int $val ): void; |
| 276 |
|
| 277 |
/** |
| 278 |
* @return string |
| 279 |
*/ |
| 280 |
public function getMin(): string; |
| 281 |
|
| 282 |
/** |
| 283 |
* @param string $val |
| 284 |
*/ |
| 285 |
public function setMin( string $val ): void; |
| 286 |
|
| 287 |
/** |
| 288 |
* @return int |
| 289 |
*/ |
| 290 |
public function getMinLength(): int; |
| 291 |
|
| 292 |
/** |
| 293 |
* @param int $val |
| 294 |
*/ |
| 295 |
public function setMinLength( int $val ): void; |
| 296 |
|
| 297 |
/** |
| 298 |
* @return bool |
| 299 |
*/ |
| 300 |
public function getMultiple(): bool; |
| 301 |
|
| 302 |
/** |
| 303 |
* @param bool $val |
| 304 |
*/ |
| 305 |
public function setMultiple( bool $val ): void; |
| 306 |
|
| 307 |
/** |
| 308 |
* @return string |
| 309 |
*/ |
| 310 |
public function getName(): string; |
| 311 |
|
| 312 |
/** |
| 313 |
* @param string $val |
| 314 |
*/ |
| 315 |
public function setName( string $val ): void; |
| 316 |
|
| 317 |
/** |
| 318 |
* @return string |
| 319 |
*/ |
| 320 |
public function getPattern(): string; |
| 321 |
|
| 322 |
/** |
| 323 |
* @param string $val |
| 324 |
*/ |
| 325 |
public function setPattern( string $val ): void; |
| 326 |
|
| 327 |
/** |
| 328 |
* @return string |
| 329 |
*/ |
| 330 |
public function getPlaceholder(): string; |
| 331 |
|
| 332 |
/** |
| 333 |
* @param string $val |
| 334 |
*/ |
| 335 |
public function setPlaceholder( string $val ): void; |
| 336 |
|
| 337 |
/** |
| 338 |
* @return bool |
| 339 |
*/ |
| 340 |
public function getReadOnly(): bool; |
| 341 |
|
| 342 |
/** |
| 343 |
* @param bool $val |
| 344 |
*/ |
| 345 |
public function setReadOnly( bool $val ): void; |
| 346 |
|
| 347 |
/** |
| 348 |
* @return bool |
| 349 |
*/ |
| 350 |
public function getRequired(): bool; |
| 351 |
|
| 352 |
/** |
| 353 |
* @param bool $val |
| 354 |
*/ |
| 355 |
public function setRequired( bool $val ): void; |
| 356 |
|
| 357 |
/** |
| 358 |
* @return int |
| 359 |
*/ |
| 360 |
public function getSize(): int; |
| 361 |
|
| 362 |
/** |
| 363 |
* @param int $val |
| 364 |
*/ |
| 365 |
public function setSize( int $val ): void; |
| 366 |
|
| 367 |
/** |
| 368 |
* @return string |
| 369 |
*/ |
| 370 |
public function getSrc(): string; |
| 371 |
|
| 372 |
/** |
| 373 |
* @param string $val |
| 374 |
*/ |
| 375 |
public function setSrc( string $val ): void; |
| 376 |
|
| 377 |
/** |
| 378 |
* @return string |
| 379 |
*/ |
| 380 |
public function getStep(): string; |
| 381 |
|
| 382 |
/** |
| 383 |
* @param string $val |
| 384 |
*/ |
| 385 |
public function setStep( string $val ): void; |
| 386 |
|
| 387 |
/** |
| 388 |
* @return string |
| 389 |
*/ |
| 390 |
public function getType(): string; |
| 391 |
|
| 392 |
/** |
| 393 |
* @param string $val |
| 394 |
*/ |
| 395 |
public function setType( string $val ): void; |
| 396 |
|
| 397 |
/** |
| 398 |
* @return string |
| 399 |
*/ |
| 400 |
public function getDefaultValue(): string; |
| 401 |
|
| 402 |
/** |
| 403 |
* @param string $val |
| 404 |
*/ |
| 405 |
public function setDefaultValue( string $val ): void; |
| 406 |
|
| 407 |
/** |
| 408 |
* @return string |
| 409 |
*/ |
| 410 |
public function getValue(): string; |
| 411 |
|
| 412 |
/** |
| 413 |
* @param ?string $val |
| 414 |
*/ |
| 415 |
public function setValue( ?string $val ): void; |
| 416 |
|
| 417 |
/** |
| 418 |
* @return float |
| 419 |
*/ |
| 420 |
public function getValueAsNumber(): float; |
| 421 |
|
| 422 |
/** |
| 423 |
* @param float $val |
| 424 |
*/ |
| 425 |
public function setValueAsNumber( float $val ): void; |
| 426 |
|
| 427 |
/** |
| 428 |
* @param int $n |
| 429 |
* @return void |
| 430 |
*/ |
| 431 |
public function stepUp( int $n = 1 ): void; |
| 432 |
|
| 433 |
/** |
| 434 |
* @param int $n |
| 435 |
* @return void |
| 436 |
*/ |
| 437 |
public function stepDown( int $n = 1 ): void; |
| 438 |
|
| 439 |
/** |
| 440 |
* @return bool |
| 441 |
*/ |
| 442 |
public function getWillValidate(): bool; |
| 443 |
|
| 444 |
/** |
| 445 |
* @return ValidityState |
| 446 |
*/ |
| 447 |
public function getValidity(); |
| 448 |
|
| 449 |
/** |
| 450 |
* @return string |
| 451 |
*/ |
| 452 |
public function getValidationMessage(): string; |
| 453 |
|
| 454 |
/** |
| 455 |
* @return bool |
| 456 |
*/ |
| 457 |
public function checkValidity(): bool; |
| 458 |
|
| 459 |
/** |
| 460 |
* @return bool |
| 461 |
*/ |
| 462 |
public function reportValidity(): bool; |
| 463 |
|
| 464 |
/** |
| 465 |
* @param string $error |
| 466 |
* @return void |
| 467 |
*/ |
| 468 |
public function setCustomValidity( string $error ): void; |
| 469 |
|
| 470 |
/** |
| 471 |
* @return NodeList|null |
| 472 |
*/ |
| 473 |
public function getLabels(); |
| 474 |
|
| 475 |
/** |
| 476 |
* @return void |
| 477 |
*/ |
| 478 |
public function select(): void; |
| 479 |
|
| 480 |
/** |
| 481 |
* @return ?int |
| 482 |
*/ |
| 483 |
public function getSelectionStart(): ?int; |
| 484 |
|
| 485 |
/** |
| 486 |
* @param ?int $val |
| 487 |
*/ |
| 488 |
public function setSelectionStart( ?int $val ): void; |
| 489 |
|
| 490 |
/** |
| 491 |
* @return ?int |
| 492 |
*/ |
| 493 |
public function getSelectionEnd(): ?int; |
| 494 |
|
| 495 |
/** |
| 496 |
* @param ?int $val |
| 497 |
*/ |
| 498 |
public function setSelectionEnd( ?int $val ): void; |
| 499 |
|
| 500 |
/** |
| 501 |
* @return ?string |
| 502 |
*/ |
| 503 |
public function getSelectionDirection(): ?string; |
| 504 |
|
| 505 |
/** |
| 506 |
* @param ?string $val |
| 507 |
*/ |
| 508 |
public function setSelectionDirection( ?string $val ): void; |
| 509 |
|
| 510 |
/** |
| 511 |
* @param string $replacement |
| 512 |
* @return void |
| 513 |
*/ |
| 514 |
public function setRangeText( string $replacement ): void; |
| 515 |
|
| 516 |
/** |
| 517 |
* @param int $start |
| 518 |
* @param int $end |
| 519 |
* @param ?string $direction |
| 520 |
* @return void |
| 521 |
*/ |
| 522 |
public function setSelectionRange( int $start, int $end, ?string $direction = null ): void; |
| 523 |
|
| 524 |
/** |
| 525 |
* @return string |
| 526 |
*/ |
| 527 |
public function getAlign(): string; |
| 528 |
|
| 529 |
/** |
| 530 |
* @param string $val |
| 531 |
*/ |
| 532 |
public function setAlign( string $val ): void; |
| 533 |
|
| 534 |
/** |
| 535 |
* @return string |
| 536 |
*/ |
| 537 |
public function getUseMap(): string; |
| 538 |
|
| 539 |
/** |
| 540 |
* @param string $val |
| 541 |
*/ |
| 542 |
public function setUseMap( string $val ): void; |
| 543 |
|
| 544 |
} |