• Robert Knight's avatar
    Fix anchoring using quote selector alone failing · 2381e2c9
    Robert Knight authored
    Looking at the `anchor` function, it is clearly intended that the
    position selector is optional for anchoring, as is the case for HTML
    anchoring. However, anchoring using only a quote selector did not
    actually work. This was in part due to the bug fixed in the previous
    commit but also because of a missing check for a null position selector
    when populating the (quote,position) cache.
    
    In order for the test to pass using only a quote, it was necessary to
    change the search string to a unique quote which only occurs once in the
    document. Otherwise the quote anchoring found the occurrence of
    'Netherfield Park' on the non-rendered page 1.
    2381e2c9
Name
Last commit
Last update
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
npm-shrinkwrap.json Loading commit data...
package.json Loading commit data...