The replaceItem() method of the SVGStringList interface replaces an existing item in the list with a new item.
replaceItem()
MDN Reference