FIX: Remove canvas tag.

This commit is contained in:
Robin Ward 2014-02-05 12:22:17 -05:00
parent e45a2bd064
commit af5254d3b4
2 changed files with 1 additions and 4 deletions

View file

@ -831,8 +831,6 @@ html4.ATTRIBS = {
'bdo::dir': 0,
'blockquote::cite': 1,
'br::clear': 0,
'canvas::height': 0,
'canvas::width': 0,
'caption::align': 0,
'col::align': 0,
'col::char': 0,
@ -1027,7 +1025,6 @@ html4.ELEMENTS = {
'blockquote': 0,
'body': 305,
'br': 2,
'canvas': 0,
'caption': 0,
'cite': 0,
'code': 0,
@ -1148,7 +1145,6 @@ html4.ELEMENT_DOM_INTERFACES = {
'blockquote': 'HTMLQuoteElement',
'body': 'HTMLBodyElement',
'br': 'HTMLBRElement',
'canvas': 'HTMLCanvasElement',
'caption': 'HTMLTableCaptionElement',
'cite': 'HTMLElement',
'code': 'HTMLElement',

View file

@ -351,6 +351,7 @@ test("sanitize", function() {
"it allows iframe to google maps");
equal(sanitize("<textarea>hullo</textarea>"), "hullo");
equal(sanitize("<button>press me!</button>"), "press me!");
equal(sanitize("<canvas>draw me!</canvas>"), "draw me!");
});
test("URLs in BBCode tags", function() {