From 133e69471604abe19bcda0a06cbc44e2a10a4fd6 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Fri, 30 Apr 2021 12:34:57 +0100 Subject: [PATCH] Fix test failures --- src/Attribute.php | 2 ++ src/Dom/Element.php | 1 + 2 files changed, 3 insertions(+) diff --git a/src/Attribute.php b/src/Attribute.php index b3f3cc1b3..e4fc0452e 100644 --- a/src/Attribute.php +++ b/src/Attribute.php @@ -1097,4 +1097,6 @@ interface Attribute const DATA_WEBCARE_ID = 'data-webcare-id'; const DATA_WIDGET_ID = 'data-widget-id'; const DATA_WIDGET_TYPE = 'data-widget-type'; + + const CROSSORIGIN_ANONYMOUS = 'anonymous'; } diff --git a/src/Dom/Element.php b/src/Dom/Element.php index 0c77e3989..be3d37322 100644 --- a/src/Dom/Element.php +++ b/src/Dom/Element.php @@ -70,6 +70,7 @@ public function addInlineStyle($style) * @param string $value The value of the attribute. * @return DOMAttr|false The new or modified DOMAttr or false if an error occurred. * @throws MaxCssByteCountExceeded If the allowed max byte count is exceeded. + * @throws DOMException With code DOM_NO_MODIFICATION_ALLOWED_ERR if the node is readonly. */ public function setAttribute($name, $value) {