File manager - Edit - /home/adiance/public_html/wp-content/plugins/amp/vendor/ampproject/optimizer/src/Exception/InvalidHtmlAttribute.php
Back
<?php namespace AmpProject\Optimizer\Exception; use AmpProject\Optimizer\Error\ElementDump; use DomainException; use DOMElement; /** * Exception thrown when an invalid HTML attribute was detected. * * @package ampproject/optimizer */ final class InvalidHtmlAttribute extends DomainException implements AmpOptimizerException { /** * Instantiate an InvalidHtmlAttribute exception for an invalid attribute value. * * @param string $attributeName Name of the attribute. * @param DOMElement $element Element that contains the invalid attribute. * @return self */ public static function fromAttribute($attributeName, DOMElement $element) { $message = "Invalid value detected for attribute '{$attributeName}': " . new ElementDump($element); return new self($message); } }
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0.07 |
proxy
|
phpinfo
|
Settings