Closed (fixed)
Project:
Accelerated Mobile Pages (AMP)
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2021 at 18:29 UTC
Updated:
8 Sep 2021 at 20:24 UTC
Jump to comment: Most recent
Comments
Comment #3
m4oliveiYay! Tests passing on Drupal 8.
The test failures in Drupal 9 will be handled by #3186185: Current versions do not work with drupal 9.1.0.
Comment #5
m4oliveiMerged to 8.x-3.x.
The issue was first off, the
AmpTextTrimmedFormatterclass was overriding theviewElementsmethod, and just overridding the#type. The way the parent method was implemented though meant that it applied the render elements info attributes such that theamp_processed_textwas denied the chance to append it's#pre_renderhooks. The fix was to copy / paste the parent method, not call the parent and make adjustments necessary to#type.In addition I was gettng mixed test results still between local and Drupal CI. I adjusted the image test fixture HTML to have a self closing tag, which appears to have made it more reliable? That was a total guess. We'll see if it holds.