mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Previously if we encountered any attributes with a namespace other than `xml` or `xmlns`, we treated it as a parse error. Now, allow it as long as it's been declared in the current context. We also handle errors more gracefully - instead of exploding if setting the namespace fails, treat it as an error and carry on.
12 lines
391 B
XML
12 lines
391 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<svg:svg
|
|
width="200"
|
|
height="200"
|
|
xmlns:svg="http://www.w3.org/2000/svg"
|
|
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
inkscape:test="test"
|
|
>
|
|
<link rel="match" href="../../expected/svg/custom-namespaced-attributes-ref.svg" />
|
|
<svg:circle cx="100" cy="100" r="50" fill="#ff0000"/>
|
|
</svg:svg>
|