No DOM objects directly implement this interface -- it is extended by Text (and others).
data contains the data represented by this Node. (If there is a platform restriction on the length of String, then the substringData must be used to retrieve data in appropriately sized chunks.)
length records the size (in character units) of data.
Same as replaceData(this.length, 0, arg) but won't raise INDEX_SIZE_ERR (obviously).
Same as replaceData(offset, count, "").
Same as replaceData(offset, 0, arg).
count character units, starting offset character units from the start of the string (i.e. zero-based), are deleted. arg is then inserted into the string at offset.
NOTE: This is how I understand the W3C specification. Other interpretations could affect all the above *Data methods. I've not yet written any code that uses this, so I don't know whether I'm right or not. Please /msg me if you know!
Returns a String containing count character units from data, starting offset character units from the start.
Log in or register
to write something here or to contact authors.