- From: Evgeniy Reizner via GitHub <sysbot+gh@w3.org>
- Date: Sun, 22 Mar 2020 20:20:13 +0000
- To: public-svg-issues@w3.org
@JoKalliauer Good question. Looks like the `id` attribute must follow the [name](https://www.w3.org/TR/2008/REC-xml-20081126/#NT-Name) token which disallows spaces. Not sure if this is part of the same issue, but here is a test with `use`: ```xml <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect id="rect1 " x="20" y="20" width="160" height="70" fill="green"/> <use id="use1" xlink:href="#rect1 " x="0" y="90"/> </svg> ``` ![e-use-001](https://user-images.githubusercontent.com/725494/77259542-d3a03500-6c8a-11ea-8792-970e25a7d796.png) (Batik crashed) So in this case Chrome ignored the IRI, which is strange. But if we will insert a space inside the id (since trailing spaces are a bit tricky) the picture is different once again: ```xml <svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <rect id="rec t1" x="20" y="20" width="160" height="70" fill="green"/> <use id="use1" xlink:href="#re ct1 " x="0" y="90"/> </svg> ``` ![e-use-002](https://user-images.githubusercontent.com/725494/77259554-e9155f00-6c8a-11ea-8136-b9da62f6f086.png) I don’t even know what to think. -- GitHub Notification of comment by RazrFalcon Please view or discuss this issue at https://github.com/w3c/svgwg/issues/781#issuecomment-602266414 using your GitHub account
Received on Sunday, 22 March 2020 20:20:15 UTC