From baf5a4ec139a9eb616671b18959396c2a941efee Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 26 Sep 2011 12:29:47 +0200 Subject: [PATCH] Blockquotes are HTMLQuoteElements in the latest HTML5 specs. --- script.coffee | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/script.coffee b/script.coffee index 762a3c28a..28f9592e6 100644 --- a/script.coffee +++ b/script.coffee @@ -388,8 +388,12 @@ filter = regexps: {} callbacks: [] init: -> - HTMLBlockquoteElement.prototype.toString = -> + HTMLQuoteElement.prototype.toString = -> return ($.el 'a', innerHTML: @innerHTML.replace /
/g, '\n').textContent + #to remove when both chrom, ff and oprah will define blockquotes as HTMLQuoteElement + if HTMLBlockquoteElement + HTMLBlockquoteElement.prototype.toString = -> + return ($.el 'a', innerHTML: @innerHTML.replace /
/g, '\n').textContent for key of config.filter unless m = conf[key].match /(.+)/g