开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜