Fixed issue where svgToString was converting HTML elements to uppercase in svgCanvas.svgToString() (#1051)
This commit is contained in:
committed by
GitHub
parent
baa68718c8
commit
4b822fe190
@@ -144,7 +144,7 @@ const svgToString = (elem, indent) => {
|
|||||||
out.push(' ')
|
out.push(' ')
|
||||||
}
|
}
|
||||||
out.push('<')
|
out.push('<')
|
||||||
out.push(elem.nodeName)
|
out.push(elem.localName)
|
||||||
if (elem.id === 'svgcontent') {
|
if (elem.id === 'svgcontent') {
|
||||||
// Process root element separately
|
// Process root element separately
|
||||||
const res = svgCanvas.getResolution()
|
const res = svgCanvas.getResolution()
|
||||||
@@ -352,7 +352,7 @@ const svgToString = (elem, indent) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
out.push('</')
|
out.push('</')
|
||||||
out.push(elem.nodeName)
|
out.push(elem.localName)
|
||||||
out.push('>')
|
out.push('>')
|
||||||
} else {
|
} else {
|
||||||
out.push('/>')
|
out.push('/>')
|
||||||
|
|||||||
Reference in New Issue
Block a user