mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Blacklist <center>
This commit is contained in:
parent
abed146cc7
commit
0ece195723
2 changed files with 1 additions and 2 deletions
|
@ -1054,7 +1054,6 @@ html4.ELEMENTS = {
|
||||||
'button': 0,
|
'button': 0,
|
||||||
'canvas': 0,
|
'canvas': 0,
|
||||||
'caption': 0,
|
'caption': 0,
|
||||||
'center': 0,
|
|
||||||
'cite': 0,
|
'cite': 0,
|
||||||
'code': 0,
|
'code': 0,
|
||||||
'col': 2,
|
'col': 2,
|
||||||
|
@ -1178,7 +1177,6 @@ html4.ELEMENT_DOM_INTERFACES = {
|
||||||
'button': 'HTMLButtonElement',
|
'button': 'HTMLButtonElement',
|
||||||
'canvas': 'HTMLCanvasElement',
|
'canvas': 'HTMLCanvasElement',
|
||||||
'caption': 'HTMLTableCaptionElement',
|
'caption': 'HTMLTableCaptionElement',
|
||||||
'center': 'HTMLElement',
|
|
||||||
'cite': 'HTMLElement',
|
'cite': 'HTMLElement',
|
||||||
'code': 'HTMLElement',
|
'code': 'HTMLElement',
|
||||||
'col': 'HTMLTableColElement',
|
'col': 'HTMLTableColElement',
|
||||||
|
|
|
@ -329,6 +329,7 @@ test("sanitize", function() {
|
||||||
"<p><a href=\"http://disneyland.disney.go.com/\">disney</a> <a href=\"http://reddit.com\">reddit</a></p>",
|
"<p><a href=\"http://disneyland.disney.go.com/\">disney</a> <a href=\"http://reddit.com\">reddit</a></p>",
|
||||||
"we can embed proper links");
|
"we can embed proper links");
|
||||||
|
|
||||||
|
cooked("<center>hello</center>", "<p>hello</p>", "it does not allow centering");
|
||||||
cooked("<table><tr><td>hello</td></tr></table>\nafter", "<p>after</p>", "it does not allow tables");
|
cooked("<table><tr><td>hello</td></tr></table>\nafter", "<p>after</p>", "it does not allow tables");
|
||||||
cooked("<blockquote>a\n</blockquote>\n", "<blockquote>a\n\n<br/>\n\n</blockquote>", "it does not double sanitize");
|
cooked("<blockquote>a\n</blockquote>\n", "<blockquote>a\n\n<br/>\n\n</blockquote>", "it does not double sanitize");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue