0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00

🐛Fixed data-* attributes from being stripped in AMP HTML ()

closes 

- Added `data-*` to `allowedAMPAttributes`, so it will not get stripped out.
This commit is contained in:
CriticalRespawn 2018-03-16 02:45:07 +00:00 committed by Aileen Nowak
parent 25b94bba75
commit 735d9775ee

View file

@ -43,7 +43,7 @@ allowedAMPTags = ['html', 'body', 'article', 'section', 'nav', 'aside', 'h1', 'h
allowedAMPAttributes = {
'*': ['itemid', 'itemprop', 'itemref', 'itemscope', 'itemtype', 'accesskey', 'class', 'dir', 'draggable',
'id', 'lang', 'tabindex', 'title', 'translate', 'aria-*', 'role', 'placeholder', 'fallback', 'lightbox',
'overflow', 'amp-access', 'amp-access-*', 'i-amp-access-id'],
'overflow', 'amp-access', 'amp-access-*', 'i-amp-access-id', 'data-*'],
h1: ['align'],
h2: ['align'],
h3: ['align'],