|
11 månader sedan | |
---|---|---|
.. | ||
src | 11 månader sedan | |
CHANGELOG.md | 11 månader sedan | |
README.md | 11 månader sedan | |
package.json | 11 månader sedan | |
tsconfig.json | 11 månader sedan | |
webpack.config.js | 11 månader sedan |
robin
is a project that groups sibling DOM nodes together by boundary points, for example the list of elements and nodes representing a word.
robin
is available as an npm
package. You can install it via the npm package @ephox/robin
npm install @ephox/robin
Robin text search API functions generally operate on and navigate through text nodes rather than general DOM elements. Text searches also generally stop at boundary (block) elements such as DIVs.
If you have a DOM element and need to find a specific contained text node and offset to start searching from then consider the phoenix
DomDescent
API functions freefallLtr()
and freefallRtl()
functions which, given an element, return a text node and offset from the left-most or right-most end of the element, respectively.
robin
uses bedrock
to run tests.
$ yarn test-manual
$ yarn test