Firefox Tomorrow

web api instance method

SVGStringList: getItem() method

View on MDN ↗

The getItem() method of the SVGStringList interface returns the specified item from the list. The returned item is the item itself and not a copy. Any changes made to the item are immediately reflected in the list. The first item is indexed 0.

Syntax

getItem(index)

Parameters

  • index
    • : A non-negative integer that specifies the index of the item to retrieve.

Return value

The string at the specified index in the list.

Exceptions

  • IndexSizeError DOMException
    • : Thrown if the SVGStringList corresponds to a read-only attribute or when the object itself is read-only.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.