![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/phpgt/dom/src/ |
<?php namespace Gt\Dom; use DOMNode; /** * Represents an attribute on an Element object. * * In most DOM methods, you will probably directly retrieve the attribute as a * string (e.g., Element::getAttribute()), but certain functions (e.g., * Element::getAttributeNode()) or means of iterating give Attr types. * * @property-read Element $ownerElement * @property-read Element $parentNode * @property-read Node|Element|null $firstChild * @property-read Node|Element|null $lastChild * @property-read Node|Element|null $previousSibling * @property-read Node|Element|null $nextSibling * @property-read Document $ownerDocument * * @method Element appendChild(DOMNode $newnode) * @method Element cloneNode(bool $deep = false) * @method Element insertBefore(DOMNode $newnode, DOMNode $refnode = null) * @method Element removeChild(DOMNode $oldnode) * @method Element replaceChild(DOMNode $newnode, DOMNode $oldnode) */ class Attr extends \DOMAttr { public function remove():self { $this->ownerElement->removeAttributeNode($this); return $this; } }