mirror of
https://github.com/yjs/yjs.git
synced 2025-12-29 00:25:01 +01:00
fix attribute filter (it used to filter everything)
This commit is contained in:
@@ -242,7 +242,7 @@ export default class YXmlFragment extends YArray {
|
||||
case 'attributes':
|
||||
let name = mutation.attributeName
|
||||
// check if filter accepts attribute
|
||||
if (this._domFilter(dom, [name]).length > 0 && this.constructor !== YXmlFragment) {
|
||||
if (this._domFilter(dom, [name]).length > 0 && yxml.constructor !== YXmlFragment) {
|
||||
var val = dom.getAttribute(name)
|
||||
if (yxml.getAttribute(name) !== val) {
|
||||
if (val == null) {
|
||||
|
||||
Reference in New Issue
Block a user