Fixed issue where svgToString was converting HTML elements to uppercase in svgCanvas.svgToString() (#1051)

This commit is contained in:
Michael S. Scherotter
2025-05-01 14:02:34 -07:00
committed by GitHub
parent baa68718c8
commit 4b822fe190

View File

@@ -144,7 +144,7 @@ const svgToString = (elem, indent) => {
out.push(' ')
}
out.push('<')
out.push(elem.nodeName)
out.push(elem.localName)
if (elem.id === 'svgcontent') {
// Process root element separately
const res = svgCanvas.getResolution()
@@ -352,7 +352,7 @@ const svgToString = (elem, indent) => {
}
}
out.push('</')
out.push(elem.nodeName)
out.push(elem.localName)
out.push('>')
} else {
out.push('/>')