Incorrect use of DOM attributes
authorAlexander Ebert <ebert@woltlab.com>
Wed, 16 Jun 2021 12:01:20 +0000 (14:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 16 Jun 2021 12:01:20 +0000 (14:01 +0200)
See #4290

wcfsetup/install/files/lib/system/html/output/AmpHtmlOutputProcessor.class.php

index df4eb79bd4b3ebcc057b794ec9ff2cba09e61ff5..1d2d260ba0d71a35cf55a333e76b2407e79c039c 100644 (file)
@@ -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;
                     }