Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

125
Views
How to Add attributes to all Elements of a specific type without using JavaScript

I want to add the following attributes to all svg element in the page:

aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg"
  1. If adding them manually, it will bloat the whole page and is time-consuming.
  2. If using JavaScript, it will delay the page loading speed.
  3. It seems that CSS also cannot do this task, see I want to change attribute value of a class using CSS

Are there any other choices?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!