Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
e032469d
Unverified
Commit
e032469d
authored
Oct 22, 2018
by
Robert Knight
Committed by
GitHub
Oct 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #792 from hypothesis/ie11_args
Fix IE 11 JS error which annotating PDFs.
parents
e102e312
a754818b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
pdf.coffee
src/annotator/anchoring/pdf.coffee
+3
-1
No files found.
src/annotator/anchoring/pdf.coffee
View file @
e032469d
...
@@ -285,7 +285,9 @@ exports.describe = (root, range, options = {}) ->
...
@@ -285,7 +285,9 @@ exports.describe = (root, range, options = {}) ->
startPageIndex = getSiblingIndex(startTextLayer.parentNode)
startPageIndex = getSiblingIndex(startTextLayer.parentNode)
endPageIndex = getSiblingIndex(endTextLayer.parentNode)
endPageIndex = getSiblingIndex(endTextLayer.parentNode)
iter = document.createNodeIterator(startTextLayer, NodeFilter.SHOW_TEXT)
# The `whatToShow`, `filter` and `expandEntityReferences` arguments are
# mandatory in IE although optional according to the spec.
iter = document.createNodeIterator(startTextLayer, NodeFilter.SHOW_TEXT, null, false);
start = seek(iter, range.start)
start = seek(iter, range.start)
end = seek(iter, range.end) + start + range.end.textContent.length
end = seek(iter, range.end) + start + range.end.textContent.length
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment