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 (#9501)
closes #9500 - Added `data-*` to `allowedAMPAttributes`, so it will not get stripped out.
This commit is contained in:
parent
25b94bba75
commit
735d9775ee
1 changed files with 1 additions and 1 deletions
|
@ -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'],
|
||||
|
|
Loading…
Add table
Reference in a new issue