From e550e06d9adbfc563b101b44a304fc6ef207d315 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 16 Jun 2021 14:01:20 +0200 Subject: [PATCH] Incorrect use of DOM attributes See #4290 --- .../lib/system/html/output/AmpHtmlOutputProcessor.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/output/AmpHtmlOutputProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/AmpHtmlOutputProcessor.class.php index df4eb79bd4..1d2d260ba0 100644 --- a/wcfsetup/install/files/lib/system/html/output/AmpHtmlOutputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/AmpHtmlOutputProcessor.class.php @@ -92,7 +92,7 @@ class AmpHtmlOutputProcessor extends HtmlOutputProcessor $attr = $element->attributes->item($i); // AMP does not support lazy loading of images. - if ($tag === 'img' && $attr === 'loading') { + if ($tag === 'img' && $attr->localName === 'loading') { continue; } -- 2.20.1