question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

amp-mustache removes `application/json` script tags

See original GitHub issue

Template sanitizer currently removes <script type="application/json"> which means that components that rely on JSON configurations (amp-animation, amp-ima-video) can not be be used inside amp-list

/cc @dvoytenko @choumx

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aghassemicommented, Mar 15, 2018

assigning to @choumx for prioritization in runtime.

1reaction
aghassemicommented, Jan 19, 2018

/cc @choumx @danielrozenberg if case you are interested as you have been improving the sanitizer recently.

Read more comments on GitHub >

github_iconTop Results From Across the Web

amp-mustache within amp-list can't bind when state modify.
To whom it may concern: I like to use amp-bind to change HTML element status. But looks like it ignore amp-bind within amp-list...
Read more >
Documentation: <amp-bind> - amp.dev
Allows elements to mutate in response to user actions or data changes via data binding and simple JS-like expressions.
Read more >
amp-form post action-xhr response stripping image tag
I am trying to display an image from an amp-form response. When I inspect the dom on reply the amp-img tag seems to...
Read more >
JSON LD Markup with AMP List/Mustache - WordPress.org
Hi,. I have been able to get the HTML output correctly with AMP List/Mustache but the JSON LD markup is not generating correctly...
Read more >
Re: The problems with AMP-Mustache only getting data from ...
The hello world from the AMP-Mustache documentation is: ... src="some-file.json"> ... <script type="application/json"> {"world": "world"}
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found