Allow rendering image tags inside svgs during replay (#13)
This commit is contained in:
@@ -109,7 +109,11 @@ function buildNode(n: serializedNodeWithId, doc: Document): Node | null {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
node.setAttribute(name, value);
|
if (n.isSVG && name === 'xlink:href') {
|
||||||
|
node.setAttributeNS('http://www.w3.org/1999/xlink', name, value);
|
||||||
|
} else {
|
||||||
|
node.setAttribute(name, value);
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// skip invalid attribute
|
// skip invalid attribute
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user