Handle a Chrome/WebKit/Blink bug.

This commit is contained in:
Mayhem 2013-08-19 22:09:52 +02:00
parent 19524d26b6
commit 7ee6b24606

View File

@ -62,6 +62,10 @@ Linkify =
range.surroundContents anchor
true
catch
<% if (type === 'crx') { %>
# Chrome bug: crbug.com/275848
return true if anchor.parentNode
<% } %>
# Attempt to handle cases such as:
# [spoiler]www.[/spoiler]example.com #
# www.example[spoiler].com[/spoiler] #