Giter Club home page Giter Club logo

Comments (4)

peacememories avatar peacememories commented on July 19, 2024 1

Weighing in here too: I just tried removing a custom element in favor of pure Elm, and using dual href | xlink:href does not work in Elm at the moment, because href is a read-only property in Svg.use and assigning it crashes at runtime.

Regarding browsers:

  • Safari only supports xlink:href
  • Firefox supports both
  • Chrome supports both

I haven't tested other browsers yet

Thanks to Ilias I found a workaround for the crash using VirtualDom.attribute, so I am going to try and replace my custom element code.

from svg.

process-bot avatar process-bot commented on July 19, 2024

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

from svg.

ivanbanov avatar ivanbanov commented on July 19, 2024

I got a help with the elm-community that can help to walk around this problem.
just take a look at the example
https://ellie-app.com/dYMDfz5V4a1/1

from svg.

evancz avatar evancz commented on July 19, 2024

I see the href case, but can someone show that xlink:arcrole is definitively now called arcrole?

The broader claim here is that xlink is not used at all, and I want to verify that before making the change. So far the data I have is:

  • w3 says what's removed and deprecated!
  • mdn says xlink:href deprecated
  • w3 says xlink:href deprecated
  • w3 does not clarify on deprecation
  • peacememories on slack says that Safari only supports xlink:href at this time. They are using both xlink:href and href to be prepared in case browsers start dropping xlink rather than just deprecating it.

So it does not seem like this change has actually fully happened yet.

from svg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.