Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Use correct case for XML (SVG) elements
Previously XML elements which use some upper case letters would be converted to all-lowercase during string parsing. As xml is case-sensitive, this breaks the element. An example is the XML linearGradient. This was caused by the code incorrectly converting all element names to lowercase to ensure HTML tags are correctly assigned, as they use lower case internally, but the browser function tagName returns all caps for HTML tags. Fix this by only converting HTML element names to lower case. Fix: #377
- Loading branch information