开发者

Are there any limits to the amount of text one can 'grab' with window.getSelection or document.selection.createRange()?

开发者 https://www.devze.com 2023-03-13 11:49 出处:网络
I can\'t seem to find this info anywhere? Do window.getSelection() or document.selection.c开发者_开发问答reateRange() hold a set # of characters or can they hold an infinite/huge #?

I can't seem to find this info anywhere?

Do window.getSelection() or document.selection.c开发者_开发问答reateRange() hold a set # of characters or can they hold an infinite/huge #?

I am working on a bookmarklet and want to know if I need to restrict the amount of text one copies.


There's no limit other than the normal practical limits in the size of a web page.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号