mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 00:52:43 +00:00 
			
		
		
		
	 29a2aac89a
			
		
	
	
		29a2aac89a
		
	
	
	
	
		
			
			Text <input> fields will now generate a basic shadow DOM and attach it to the input element. The shadow DOM contains a <div> with some inline style, and an always- editable text node inside it. Accessing the "value" attribute on such an input element will get/set the value from that text node. This is really cool, although not super stable since HTML editing is not super stable. But it's a start! :^)
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			1,016 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			1,016 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| interface HTMLInputElement : HTMLElement {
 | |
| 
 | |
|     [Reflect] attribute DOMString accept;
 | |
|     [Reflect] attribute DOMString alt;
 | |
|     [Reflect] attribute DOMString max;
 | |
|     [Reflect] attribute DOMString min;
 | |
|     [Reflect] attribute DOMString pattern;
 | |
|     [Reflect] attribute DOMString placeholder;
 | |
|     [Reflect] attribute DOMString src;
 | |
|     [Reflect] attribute DOMString step;
 | |
|     [Reflect=dirname] attribute DOMString dirName;
 | |
|     [Reflect=value] attribute DOMString defaultValue;
 | |
| 
 | |
|     [LegacyNullToEmptyString] attribute DOMString value;
 | |
| 
 | |
|     attribute boolean checked;
 | |
| 
 | |
|     [Reflect] attribute boolean disabled;
 | |
|     [Reflect=checked] attribute boolean defaultChecked;
 | |
|     [Reflect=formnovalidate] attribute boolean formNoValidate;
 | |
|     [Reflect=formtarget] attribute DOMString formTarget;
 | |
|     [Reflect] attribute boolean multiple;
 | |
|     [Reflect=readonly] attribute boolean readOnly;
 | |
|     [Reflect] attribute boolean required;
 | |
| 
 | |
|     [Reflect] attribute DOMString align;
 | |
|     [Reflect=usemap] attribute DOMString useMap;
 | |
| 
 | |
| };
 |