diff --git a/app/assets/javascripts/defer/html-sanitizer-bundle.js b/app/assets/javascripts/defer/html-sanitizer-bundle.js index 683ecc9ab6..90f9536e51 100644 --- a/app/assets/javascripts/defer/html-sanitizer-bundle.js +++ b/app/assets/javascripts/defer/html-sanitizer-bundle.js @@ -831,14 +831,6 @@ html4.ATTRIBS = { 'bdo::dir': 0, 'blockquote::cite': 1, 'br::clear': 0, - 'button::accesskey': 0, - 'button::disabled': 0, - 'button::name': 8, - 'button::onblur': 2, - 'button::onfocus': 2, - 'button::tabindex': 0, - 'button::type': 0, - 'button::value': 0, 'canvas::height': 0, 'canvas::width': 0, 'caption::align': 0, @@ -1035,7 +1027,6 @@ html4.ELEMENTS = { 'blockquote': 0, 'body': 305, 'br': 2, - 'button': 0, 'canvas': 0, 'caption': 0, 'cite': 0, @@ -1157,7 +1148,6 @@ html4.ELEMENT_DOM_INTERFACES = { 'blockquote': 'HTMLQuoteElement', 'body': 'HTMLBodyElement', 'br': 'HTMLBRElement', - 'button': 'HTMLButtonElement', 'canvas': 'HTMLCanvasElement', 'caption': 'HTMLTableCaptionElement', 'cite': 'HTMLElement', diff --git a/test/javascripts/lib/markdown_test.js b/test/javascripts/lib/markdown_test.js index dcfee8acea..a318ccd7be 100644 --- a/test/javascripts/lib/markdown_test.js +++ b/test/javascripts/lib/markdown_test.js @@ -350,6 +350,7 @@ test("sanitize", function() { "", "it allows iframe to google maps"); equal(sanitize(""), "hullo"); + equal(sanitize(""), "press me!"); }); test("URLs in BBCode tags", function() {