erosman / HTML-Internationalization

HTML Internationalization for WebExtension
8 stars 2 forks source link

Replace attribute indexer with setAttribute #2

Closed Aaron-P closed 3 years ago

Aaron-P commented 3 years ago

Using element[attribute] = value doesn't work as expected for custom attributes. Using element.setAttribute(attribute, value) allows for custom attributes.