mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Compatibility with XHTML documents
Previously, when the XHTML doctype + header is active, checks would fail because a <div>'s tag name is "div" instead of "DIV". document.activeElement does not exist in Chrome for XHTML documents == -> ===
This commit is contained in:
parent
e181a3c902
commit
b46c375126
2 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ var FontInspector = (function FontInspectorClosure() {
|
|||
}
|
||||
}
|
||||
function textLayerClick(e) {
|
||||
if (!e.target.dataset.fontName || e.target.tagName != 'DIV')
|
||||
if (!e.target.dataset.fontName || e.target.tagName.toUpperCase() !== 'DIV')
|
||||
return;
|
||||
var fontName = e.target.dataset.fontName;
|
||||
var selects = document.getElementsByTagName('input');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue