mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:12:43 +00:00 
			
		
		
		
	 d4a890080d
			
		
	
	
		d4a890080d
		
	
	
	
	
		
			
			NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
		
			
				
	
	
		
			49 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
	
		
			1.5 KiB
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/Node.idl>
 | |
| #import <DOM/AbstractRange.idl>
 | |
| #import <Geometry/DOMRect.idl>
 | |
| 
 | |
| [Exposed=Window]
 | |
| interface Range : AbstractRange {
 | |
| 
 | |
|     constructor();
 | |
| 
 | |
|     readonly attribute Node commonAncestorContainer;
 | |
| 
 | |
|     undefined setStart(Node node, unsigned long offset);
 | |
|     undefined setEnd(Node node, unsigned long offset);
 | |
|     undefined setStartBefore(Node node);
 | |
|     undefined setStartAfter(Node node);
 | |
|     undefined setEndBefore(Node node);
 | |
|     undefined setEndAfter(Node node);
 | |
|     undefined collapse(optional boolean toStart = false);
 | |
|     undefined selectNode(Node node);
 | |
|     undefined selectNodeContents(Node node);
 | |
| 
 | |
|     const unsigned short START_TO_START = 0;
 | |
|     const unsigned short START_TO_END = 1;
 | |
|     const unsigned short END_TO_END = 2;
 | |
|     const unsigned short END_TO_START = 3;
 | |
|     short compareBoundaryPoints(unsigned short how, Range sourceRange);
 | |
| 
 | |
|     [CEReactions] undefined deleteContents();
 | |
|     [CEReactions, NewObject] DocumentFragment extractContents();
 | |
|     [CEReactions, NewObject] DocumentFragment cloneContents();
 | |
|     [CEReactions] undefined insertNode(Node node);
 | |
|     [CEReactions] undefined surroundContents(Node newParent);
 | |
| 
 | |
|     Range cloneRange();
 | |
|     undefined detach();
 | |
| 
 | |
|     boolean isPointInRange(Node node, unsigned long offset);
 | |
|     short comparePoint(Node node, unsigned long offset);
 | |
| 
 | |
|     boolean intersectsNode(Node node);
 | |
| 
 | |
|     DOMRect getBoundingClientRect();
 | |
| 
 | |
|     stringifier;
 | |
| 
 | |
|     // Extensions from the DOM Parsing specification:
 | |
|     [CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
 | |
| 
 | |
| };
 |