Skip to content

Commit

Permalink
[TASK] Add img.loading attribute
Browse files Browse the repository at this point in the history
Fixed `<img loading="*">` attribute.

Related: #18
  • Loading branch information
schlotzz authored and ohader committed Aug 12, 2021
1 parent 01f3dee commit 12d0894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/CommonBuilder.php
Expand Up @@ -141,7 +141,7 @@ protected function createMediaTags(): array
->addAttrs(...$this->createAttrs('autoplay', 'controls', 'height', 'loop', 'muted', 'playsinline', 'poster', 'preload', 'width'));
$tags['img'] = (new Behavior\Tag('img', Behavior\Tag::PURGE_WITHOUT_ATTRS))
->addAttrs($this->srcAttr, $this->srcsetAttr, ...$this->globalAttrs)
->addAttrs(...$this->createAttrs('alt', 'decoding', 'height', 'sizes', 'width'));
->addAttrs(...$this->createAttrs('alt', 'decoding', 'height', 'sizes', 'width', 'loading'));
$tags['track'] = (new Behavior\Tag('track', Behavior\Tag::PURGE_WITHOUT_ATTRS))
->addAttrs($this->srcAttr, ...$this->globalAttrs)
->addAttrs(...$this->createAttrs('default', 'kind', 'label', 'srcLang'));
Expand Down

0 comments on commit 12d0894

Please sign in to comment.