Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/columnresizing.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,11 @@ function currentColWidth(view, cellPos, {colspan, colwidth}) {
return domWidth / parts
}

// ie fix: classList property does not exist on svgs in internet explorer. therefore
// we have to check the classList property first before calling the contains function
// on the classList
function domCellAround(target) {
while (target && target.nodeName != "TD" && target.nodeName != "TH")
while (target && target.classList && target.nodeName != "TD" && target.nodeName != "TH")
target = target.classList.contains("ProseMirror") ? null : target.parentNode
return target
}
Expand Down