Commit 6386b26e authored by Robert Knight's avatar Robert Knight

Add explanatory note in test

parent cde29eef
...@@ -112,6 +112,8 @@ describe('annotator/util/scroll', () => { ...@@ -112,6 +112,8 @@ describe('annotator/util/scroll', () => {
it('installs scroll-into-view workaround for XHTML documents', async () => { it('installs scroll-into-view workaround for XHTML documents', async () => {
try { try {
// Simulate an XHTML document, where `tagName` is not upper-cased as
// it is for HTML documents.
Object.defineProperty(document.body, 'tagName', { Object.defineProperty(document.body, 'tagName', {
value: 'body', value: 'body',
configurable: true, configurable: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment