• Robert Knight's avatar
    Remove logic to ignore Hypothesis UI when generating range selectors · 0649e964
    Robert Knight authored
    Remove the logic that was intended to ignore Hypothesis UI when
    generating range selectors.
    
    We don't need this any more because all Hypothesis UI elements in the
    host page which contain text have `user-select` set to prevent text
    selection. This affects the bucket bar, vertical toolbar and adder.
    
    In addition, the logic did not serve its intended purpose as it only applied to
    range selector generation. If the user did somehow succeed in selecting text in
    the bucket bar for example the client would still generate quote and position
    selectors that referred to that content. What the client would need to
    do instead is modify the range from which the annotation's selectors
    were generated.
    
    As a side effect this fixes a regression introduced in a5540581 which caused
    range selector generation to fail in Chrome and Firefox due to use of
    `:not(<inner selector>)` selector where `<inner selector>` is a
    list of selectors (the `IGNORE_SELECTOR` value from `guest.js`).
    0649e964
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev-server Loading commit data...
docs Loading commit data...
embedding-examples Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.dockerignore Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.prettierignore Loading commit data...
.prettierrc Loading commit data...
.python-version Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Dockerfile Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
codecov.yml Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
tox.ini Loading commit data...
yarn.lock Loading commit data...