• Skip to main content
  • Select language
  • Skip to search
MDN Web Docs
  • Sign in
  • Technologies
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs / DOM
    • Browser Extensions
    • MathML
  • References & Guides
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
  • Feedback
    • Get Firefox help
    • Get web development help
    • Join the MDN community
    • Report a content problem
    • Report a bug
    • 日本語 (ja)
    • Português (do Brasil) (pt-BR)
    • Русский (ru)
    • 中文 (简体) (zh-CN)
    • Add a translation
  • Edit
  • Advanced
    • History
    • Print this article

DOMStringList

  1. Web technology for developers
  2. Web APIs
  3. DOMStringList
Jump to:
  1. Properties
  2. Methods
  3. Specifications

A type returned by some APIs which contains a list of DOMString (strings).

Properties

DOMStringList.length Read only
Returns the length of the list,

Methods

DOMStringList.item()
Returns a DOMString.
DOMStringList.contains()
Returns Boolean indicating if the given string is in the list

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'DOMStringList' in that specification.
Living Standard Initial specification

Document Tags and Contributors

Tags: 
  • API
  • DOM
  • DOMStringList
  • Reference
  • Référence(2)
 Contributors to this page: tocretpa, chrisdavidmills, Sebastianz, teoli, Bzbarsky, kscarfone, Sheppy, BYK, Brettz9
 Last updated by: tocretpa, Aug 29, 2017, 4:10:35 AM
Related Topics
  1. Document Object Model
  2. DOMStringList
  3. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. Attr
    4. ByteString
    5. CDATASection
    6. CSSPrimitiveValue
    7. CSSValue
    8. CSSValueList
    9. CharacterData
    10. ChildNode
    11. Comment
    12. CustomEvent
    13. DOMConfiguration
    14. DOMError
    15. DOMErrorHandler
    16. DOMException
    17. DOMImplementation
    18. DOMImplementationList
    19. DOMImplementationRegistry
    20. DOMImplementationSource
    21. DOMLocator
    22. DOMObject
    23. DOMParser
    24. DOMPoint
    25. DOMRect
    26. DOMString
    27. DOMTimeStamp
    28. DOMTokenList
    29. DOMUserData
    30. Document
    31. DocumentFragment
    32. DocumentType
    33. Element
    34. ElementTraversal
    35. Entity
    36. EntityReference
    37. Event
    38. EventTarget
    39. HTMLCollection
    40. MutationObserver
    41. Node
    42. NodeFilter
    43. NodeIterator
    44. NodeList
    45. NonDocumentTypeChildNode
    46. ProcessingInstruction
    47. PromiseResolver
    48. Range
    49. Text
    50. TextDecoder
    51. TextEncoder
    52. TimeRanges
    53. TreeWalker
    54. TypeInfo
    55. USVString
    56. UserDataHandler

Learn the best of web development

Get the latest and greatest from MDN delivered straight to your inbox.

Thanks! Please check your inbox to confirm your subscription.

If you haven’t previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.

MDN Web Docs

MDN

  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • Twitter
  • GitHub
Mozilla

Mozilla

  • About
  • Contact Us
  • Donate
  • Firefox
  • Twitter
  • Facebook
  • Instagram
  • Terms
  • Privacy
  • Cookies

© 2005-2018 Mozilla and individual contributors.

Content is available under these licenses.