mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:52:45 +00:00 
			
		
		
		
	 67ceba2e6a
			
		
	
	
		67ceba2e6a
		
	
	
	
	
		
			
			The intent is to use these to autogenerate prototype declarations for Window and WorkerGlobalScope classes. And the spec links are just nice to have :^)
		
			
				
	
	
		
			35 lines
		
	
	
	
		
			886 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			886 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <HTML/DOMStringMap.idl>
 | |
| #import <DOM/EventHandler.idl>
 | |
| 
 | |
| // https://html.spec.whatwg.org/multipage/semantics.html#htmlelement
 | |
| [Exposed=Window]
 | |
| interface HTMLElement : Element {
 | |
| 
 | |
|     [Reflect] attribute DOMString title;
 | |
|     [Reflect] attribute DOMString lang;
 | |
| 
 | |
|     [Reflect] attribute boolean hidden;
 | |
| 
 | |
|     attribute DOMString contentEditable;
 | |
| 
 | |
|     undefined click();
 | |
| 
 | |
|     // FIXME: Support the optional FocusOptions parameter.
 | |
|     undefined focus();
 | |
| 
 | |
|     undefined blur();
 | |
| 
 | |
|     [LegacyNullToEmptyString] attribute DOMString innerText;
 | |
| 
 | |
|     readonly attribute long offsetTop;
 | |
|     readonly attribute long offsetLeft;
 | |
|     readonly attribute long offsetWidth;
 | |
|     readonly attribute long offsetHeight;
 | |
| };
 | |
| 
 | |
| HTMLElement includes GlobalEventHandlers;
 | |
| HTMLElement includes HTMLOrSVGElement;
 | |
| 
 | |
| interface mixin HTMLOrSVGElement {
 | |
|     [SameObject] readonly attribute DOMStringMap dataset;
 | |
| };
 |