1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-22 04:50:09 +00:00

fix typos

This commit is contained in:
Lu Wang 2013-11-06 16:38:11 +08:00
parent 515f496cce
commit 3e5eaecf14

View File

@ -309,7 +309,8 @@
var nodes = div.childNodes;
for(var i = 0, l = nodes.length; i < l; ++i) {
var cur_node = nodes[i];
if(cur_node.classList.contains(CSS_CLASS_NAMES.page_frame)) {
if((cur_node.nodeType == Node.ELEMENT_NODE)
&& cur_node.classList.contains(CSS_CLASS_NAMES.page_frame)) {
new_page = cur_node;
break;
}
@ -591,7 +592,7 @@
cur_pos = transform(cur_page.ictm, [cur_pos[0], cur_page.height()-cur_pos[1]]);
}
var detail_str = /** @type{string} */ (e.target.getAttribute('data-dest-detail'));
var detail_str = /** @type{string} */ (target.getAttribute('data-dest-detail'));
if(detail_str === undefined) return;
var ok = false;