[kupu-dev] Kupu and Safari
Duncan Booth
duncan.booth at suttoncourtenay.org.uk
Mon Aug 13 13:05:14 CEST 2007
I managed to get hold of a Mac which means I can now use the Webkit
debugger. If you enable kupu, then you get a Javascript error when you try
to edit the default front page. This particular problem is because the
function:
String.prototype.strip = function() {
var stripspace = /^\s*([\s\S]*?)\s*$/;
return stripspace.exec(this)[1];
};
doesn't like the content of the homepage, specifically it doesn't like the
ellipsis character \u2026 which is contained in the string. It already
seems to be a known bug: http://bugs.webkit.org/show_bug.cgi?id=10370
except that bug refers to \u2019. Sadly the last activity on the bug was
more than 1 year ago. There is also what seems to be a duplicate issue
athttp://bugs.webkit.org/show_bug.cgi?id=14877
Is there an easy way to get someone to actually fix this bug? Obviously I
could work round it using (?:\s|\S)*? instead of the character class, but
kupu depends heavily on regexps working properly so it would be easier if I
didn't have to try to start patching them.
More information about the kupu-dev
mailing list