Get to know MDN better
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
The SVGStringList interface defines a list of strings.
An SVGStringList object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.
An SVGStringList object is indexable and can be accessed like an array.
The number of items in the list.
numberOfItemsThe number of items in the list.
Inserts a new item at the end of the list.
clear()Clears all existing items from the list, with the result being an empty list.
initialize()Clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
getItem()Returns the specified item from the list.
insertItemBefore()Inserts a new item into the list at the specified position.
removeItem()Removes an existing item from the list.
replaceItem()Replaces an existing item in the list with a new item.
| Scalable Vector Graphics (SVG) 2 # InterfaceSVGStringList |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Feb 2, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.