Adds the medium
newMedium
to the end of the list. If the
newMedium
is already used, it is first removed.
Parameters:
-
newMedium - The new medium to add.
Throws:
-
DOMException - INVALID_CHARACTER_ERR: If the medium contains characters that are
invalid in the underlying style language.
NO_MODIFICATION_ALLOWED_ERR: Raised if this list is readonly.