FIX: Support div dir= in sanitizer

This commit is contained in:
Robin Ward 2016-08-15 11:19:10 -04:00
parent 1916924304
commit 4d8584f427
2 changed files with 3 additions and 0 deletions

View file

@ -124,6 +124,7 @@ whiteListFeature('default', [
'div.quote-controls',
'div.title',
'div[align]',
'div[dir]',
'dl',
'dt',
'em',

View file

@ -56,6 +56,8 @@ test("sanitize", function() {
cooked(`<abbr title="JavaScript">JS</abbr>`, `<p><abbr title="JavaScript">JS</abbr></p>`);
cooked(`<dl><dt>Forum</dt><dd>Software</dd></dl>`, `<dl><dt>Forum</dt><dd>Software</dd></dl>`);
cooked(`<sup>high</sup> <sub>low</sub> <big>HUGE</big>`, `<p><sup>high</sup> <sub>low</sub> <big>HUGE</big></p>`);
cooked(`<div dir="rtl">RTL text</div>`, `<div dir="rtl">RTL text</div>`);
});
test("ids on headings", () => {