Reputation: 8857
So yeah, basically what is the difference between DOMString
and String
?
Upvotes: 4
Views: 802
Reputation: 444
DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.
Upvotes: 0
Reputation: 21368
W3C:
For Java and ECMAScript, DOMString is bound to the String type because both languages also use UTF-16 as their encoding.
So, in terms of client-side stuff, I assume that there is no difference as DOMString is the equivalent of a String.
Upvotes: 5