Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

SVG Support for Dataset Attribute

  • 3 відповіді
  • 3 мають цю проблему
  • 1 перегляд
  • Остання відповідь від cor-el

more options

This is really a feature request, as I realize that the dataset attribute is only defined for HTML ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.dataset ) . But it would be very nice if that capability were extended into SVG as well, as it is for Safari and Chrome. For example, p.dataset.camelCasedName is understood by Firefox but svg.dataset.camelCasedName is not, returning the error message “TypeError: svg.dataset is undefined”. Safari and Chrome understand both.

This is really a feature request, as I realize that the dataset attribute is only defined for HTML ( https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement.dataset ) . But it would be very nice if that capability were extended into SVG as well, as it is for Safari and Chrome. For example, p.dataset.camelCasedName is understood by Firefox but svg.dataset.camelCasedName is not, returning the error message “TypeError: svg.dataset is undefined”. Safari and Chrome understand both.

Усі відповіді (3)

more options

hello aanderson, this is a primarily community-run support forum so it's probably not the right place to request features (we cannot implement any features & devs won't read here).

please either use https://input.mozilla.org/feedback for general feedback or if you feel that it's a missing feature in the browser file a bug at bugzilla.mozilla.org.

more options

Thanks, this didn’t seem quite right, but I couldn’t find the feedback form (not remembering what it was called I couldn’t search for it). It would be nice if it were linked from the support page. I see others have had the same confusion: https://support.mozilla.org/en-US/questions/971775?esab=a&s=feedback&r=0&as=s

more options

You can find that in the Help menu: Help > Submit Feedback