From 22c4fdede5e56b858441acfd146ffb2380efde9b Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Mon, 12 Aug 2013 00:33:34 -0700 Subject: [PATCH] Range.setEndAfter doesn't work in fragments But Range.setEnd does? --- LICENSE | 2 +- builds/4chan-X.user.js | 4 ++-- builds/crx/script.js | 4 ++-- src/Linkification/Linkify.coffee | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index d2ae960d0..468617e9f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ /* -* 4chan X - Version 1.2.25 - 2013-08-11 +* 4chan X - Version 1.2.25 - 2013-08-12 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index b7c190b1f..5564ab3d3 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -19,7 +19,7 @@ // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC // ==/UserScript== /* -* 4chan X - Version 1.2.25 - 2013-08-11 +* 4chan X - Version 1.2.25 - 2013-08-12 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4476,7 +4476,7 @@ } } if (range.collapsed) { - range.setEndAfter(node); + range.setEnd(node, node.data.length); } return range; }, diff --git a/builds/crx/script.js b/builds/crx/script.js index d7146a8ab..b2166a115 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1,6 +1,6 @@ // Generated by CoffeeScript /* -* 4chan X - Version 1.2.25 - 2013-08-11 +* 4chan X - Version 1.2.25 - 2013-08-12 * * Licensed under the MIT license. * https://github.com/seaweedchan/4chan-x/blob/master/LICENSE @@ -4481,7 +4481,7 @@ } } if (range.collapsed) { - range.setEndAfter(node); + range.setEnd(node, node.data.length); } return range; }, diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 74dca4b22..f017b2b3d 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -107,7 +107,7 @@ Linkify = return range if range.collapsed - range.setEndAfter node + range.setEnd node, node.data.length range