files/en-us/web/api/svgstringlist/replaceitem/index.md
{{APIRef("SVG")}}
The replaceItem() method of the {{domxref("SVGStringList")}} interface replaces an existing item in the list with a new item. The inserted item is the item itself and not a copy.
replaceItem(newItem, index)
newItem
index
The string that was added the list.
NoModificationAllowedError {{domxref("DOMException")}}
IndexSizeError {{domxref("DOMException")}}
{{Specifications}}
{{Compat}}