FEATURE: Whitelist div[data-theme-*] (#5598)

* Whitelist div[data-theme-*]

Whitelisting data attributes on <div> elements that match [data-theme-*] allows theme authors to target elements in posts and not have those attributes sanitized. 

https://meta.discourse.org/t/79520/16

* Update white-lister.js.es6
This commit is contained in:
hnb-ku 2018-02-15 17:32:41 +08:00 committed by Sam
parent 498cc15aa9
commit afdc559f4f
1 changed files with 1 additions and 0 deletions

View File

@ -137,6 +137,7 @@ const DEFAULT_LIST = [
'div.quote-controls',
'div.title',
'div[align]',
'div[data-theme-*]',
'div[dir]',
'dl',
'dt',