li element not allowed as child of amp-accordion. Fixed by replacing with h2.
Missing role=button on li element that has an on attribute added.
Also, filtering amp_post_template_data to add scripts is not needed in AMP paired/native mode since the AMP plugin automatically determines which AMP component scripts need to be added.
I noticed a couple AMP validation errors:
li
element not allowed as child ofamp-accordion
. Fixed by replacing withh2
.role=button
onli
element that has anon
attribute added.Also, filtering
amp_post_template_data
to add scripts is not needed in AMP paired/native mode since the AMP plugin automatically determines which AMP component scripts need to be added.