Improve testing for parent span being correct.
This commit is contained in:
parent
076526787e
commit
0d89653706
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1620,7 +1620,7 @@
|
|||
HTMLcreateSpan: function (span) {
|
||||
if (this.spanID) {
|
||||
var SPAN = this.HTMLspanElement();
|
||||
if (SPAN && SPAN.parentNode === span) {
|
||||
if (SPAN && (SPAN.parentNode === span || (SPAN.parentNode||{}).parentNode === span)) {
|
||||
while (SPAN.firstChild) {SPAN.removeChild(SPAN.firstChild)}
|
||||
SPAN.bbox = {w:0, h:0, d:0, lw:0, rw:0};
|
||||
SPAN.scale = 1; SPAN.isMultChar = null;
|
||||
|
|
Loading…
Reference in New Issue
Block a user