fix valueless attributes #1093
This commit is contained in:
parent
2289061f90
commit
3cf16631a0
2 changed files with 2 additions and 5 deletions
|
|
@ -97,7 +97,7 @@
|
|||
} else if (match[3][0] === "[") {
|
||||
var attrValue = match[6]
|
||||
if (attrValue) attrValue = attrValue.replace(/\\(["'])/g, "$1")
|
||||
cell.attrs[match[4]] = attrValue || ""
|
||||
cell.attrs[match[4]] = attrValue || true
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue