mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:42:43 +00:00 
			
		
		
		
	 b603e860af
			
		
	
	
		b603e860af
		
	
	
	
	
		
			
			The existing implementation has some pre-existing issues where it is incorrectly assumes that byte offsets are given through the IDL instead of UTF-16 code units. While making these changes, leave some FIXMEs for that.
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			756 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			756 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/ChildNode.idl>
 | |
| #import <DOM/Element.idl>
 | |
| #import <DOM/Node.idl>
 | |
| 
 | |
| // https://dom.spec.whatwg.org/#characterdata
 | |
| [Exposed=Window]
 | |
| interface CharacterData : Node {
 | |
|     [LegacyNullToEmptyString] attribute DOMString data;
 | |
|     readonly attribute unsigned long length;
 | |
| 
 | |
|     DOMString substringData(unsigned long offset, unsigned long count);
 | |
|     undefined appendData(DOMString data);
 | |
|     undefined insertData(unsigned long offset, DOMString data);
 | |
|     undefined deleteData(unsigned long offset, unsigned long count);
 | |
|     undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
 | |
| 
 | |
|     readonly attribute Element? nextElementSibling;
 | |
|     readonly attribute Element? previousElementSibling;
 | |
| };
 | |
| 
 | |
| CharacterData includes ChildNode;
 |