153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)/* 253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * 453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * This library is free software; you can redistribute it and/or 553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * modify it under the terms of the GNU Library General Public 653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * License as published by the Free Software Foundation; either 753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * version 2 of the License, or (at your option) any later version. 853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * 953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * This library is distributed in the hope that it will be useful, 1053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of 1153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * Library General Public License for more details. 1353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * 1453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * You should have received a copy of the GNU Library General Public License 1553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * along with this library; see the file COPYING.LIB. If not, write to 1653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 1753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * Boston, MA 02110-1301, USA. 1853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) */ 1953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) 2053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)interface CharacterData : Node { 2153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) 22521d96ec04ace82590870fb04353ec4f82bb150fTorne (Richard Coles) [TreatNullAs=NullString] attribute DOMString data; 2353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) 2453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) readonly attribute unsigned long length; 2502772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 26df95704c49daea886ddad70775bda23618d6274dBen Murdoch [TreatReturnedNullStringAs=Null, RaisesException] DOMString substringData(unsigned long offset, unsigned long length); 2753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) 28f5e4ad553afbc08dd2e729bb77e937a9a94d5827Torne (Richard Coles) void appendData(DOMString data); 29f5e4ad553afbc08dd2e729bb77e937a9a94d5827Torne (Richard Coles) [RaisesException] void insertData(unsigned long offset, DOMString data); 30f5e4ad553afbc08dd2e729bb77e937a9a94d5827Torne (Richard Coles) [RaisesException] void deleteData(unsigned long offset, unsigned long length); 31f5e4ad553afbc08dd2e729bb77e937a9a94d5827Torne (Richard Coles) [RaisesException] void replaceData(unsigned long offset, unsigned long length, DOMString data); 3253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)}; 3353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) 34591b958dee2cf159d33a0b931e6231072eaf38d5Ben MurdochCharacterData implements ChildNode; 35591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch 36