Contents of text-fragments-ts
Latest commit: Add example with multiple targets to demo. 9 months ago

src 9 months ago
.gitignore 9 months ago 9 months ago
demo.html 9 months ago
package-lock.json 9 months ago
package.json 9 months ago
tsconfig.json 9 months ago

Text Fragments — TypeScript implementation

This is an implementation of (most of) the WICG’s Text Fragments draft specification:

It implements the spec line by line, in order to help serve as a reference implementation and to help test the specification. No attempt is made to e.g. increase efficiency.

A polyfill is provided to use text fragments in browsers and other HTML viewers that do not support this feature natively.

Try it out in the playground!