amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

Modify various extensions to support the use of native `img` as a descendent

Open rbeckthomas opened this issue 6 years ago • 1 comments

Describe the new feature or change to an existing feature you'd like to see

This change is part of the umbrella of changes which make up the amp-img deprecation: #30442 This change will also follow the implementation of: #30956 which will allow the use of native img tags in valid AMP documents.

The following components will require changes to support native img as children.

  • Amp-auto-lightbox.js
  • Amp-image-lightbox.js
  • Amp-image-slider.js
  • Amp-image-slider-validator.js
  • Amp-image-viewer.js
  • Amp-lightbox-gallery.js
  • Lightbox-manager-impl.js

Additionally, amp-consent will require changes to allow images to be blocked on consent, amp-analytics will need to be updated to track changes to native img tags and the amp-bind validator will need to be updated in order to be used with native img.

Additionally, a change to the validator, which currently disallows native img as a child of any amp-* component except amp-img will need to be made to permit these changes.

Additional context

For additional documents see this document about amp-img deprecation, and this document about allowing native #img in valid amp documents.

rbeckthomas avatar Nov 02 '20 22:11 rbeckthomas

My understanding from #30442 is that this work has been completed.

Gregable avatar Jan 10 '22 22:01 Gregable