Skip to content

table while 循环造成丢失table 后一行的 node  #96

Description

@sanyuelanv

richtext.js 的 142 行代码

while (tmpNode.type === 'table_tr') {
  tableNode.children.push(getBlockNode(tmpNode));
  tmpNode = parsedData[++i];
}

tmpNode 不再是 table_tr 的时候 ,但是 i 已经 +1 了,导致 不能进入 node.type !== 'table_tr' 的分支。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions