Skip to content

Commit

Permalink
Merge pull request #918 from schlessera/fix/917-missing-closing-amp-i…
Browse files Browse the repository at this point in the history
…mg-tags

Add missing closing tags to <amp-img> elements
  • Loading branch information
patrickkettner authored Oct 11, 2020
2 parents 332a1a9 + f984f76 commit 77c3515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
<head></head>
<body>
<!-- srcset is not supported by all browsers -->
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png" srcset="test 100w test2 3dpr" i-amphtml-ssr data-hero>
<!-- not preloaded as it's not a hero image -->
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png">
</amp-img><img class="i-amphtml-fill-content i-amphtml-replaced-content" decoding="async" src="https://example-com.cdn.ampproject.org/foo.png" srcset="test 100w test2 3dpr">
</amp-img>
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png" srcset="test 100w test2 3dpr" i-amphtml-ssr data-hero><img class="i-amphtml-fill-content i-amphtml-replaced-content" decoding="async" src="https://example-com.cdn.ampproject.org/foo.png" srcset="test 100w test2 3dpr"></amp-img>
<!-- not preloaded as it's not a hero image -->
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png"></amp-img>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<head></head>
<body>
<!-- srcset is not supported by all browsers -->
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png" srcset="test 100w test2 3dpr">
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png" srcset="test 100w test2 3dpr"></amp-img>
<!-- not preloaded as it's not a hero image -->
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png">
<amp-img width="500" height="400" src="https://example-com.cdn.ampproject.org/foo.png"></amp-img>
</body>
</html>

0 comments on commit 77c3515

Please sign in to comment.