Range.setEndAfter doesn't work in fragments
But Range.setEnd does?
This commit is contained in:
parent
a8ee9b3992
commit
22c4fdede5
2
LICENSE
2
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.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.25 - 2013-08-11
|
* 4chan X - Version 1.2.25 - 2013-08-12
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -4476,7 +4476,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (range.collapsed) {
|
if (range.collapsed) {
|
||||||
range.setEndAfter(node);
|
range.setEnd(node, node.data.length);
|
||||||
}
|
}
|
||||||
return range;
|
return range;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript
|
// 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.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -4481,7 +4481,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (range.collapsed) {
|
if (range.collapsed) {
|
||||||
range.setEndAfter(node);
|
range.setEnd(node, node.data.length);
|
||||||
}
|
}
|
||||||
return range;
|
return range;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -107,7 +107,7 @@ Linkify =
|
|||||||
return range
|
return range
|
||||||
|
|
||||||
if range.collapsed
|
if range.collapsed
|
||||||
range.setEndAfter node
|
range.setEnd node, node.data.length
|
||||||
|
|
||||||
range
|
range
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user