TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Minimal selection API for IE5+ and all modern browsers (in Coffeescript)

1 点作者 timcameronryan将近 14 年前

1 comment

timcameronryan将近 14 年前
This is reworked from my other project, IERange (<a href="https://github.com/timcameronryan/IERange" rel="nofollow">https://github.com/timcameronryan/IERange</a>).<p>Rather than include a full duplication of DOM Ranges for old IE browsers, this API normalizes the most important capabilities of DOM Ranges and TextRanges (getting/setting anchors, and directionality). This can be included in a JavaScript library without much overhead, and any other essential DOM Range capability (deleteContents(), setStartBefore(), etc.), can be duplicated as needed by working with the DOM itself.