mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:22:43 +00:00 
			
		
		
		
	LibWeb: Add support for HTMLOrSVGElement.dataset
This commit is contained in:
		
							parent
							
								
									37347cbcb6
								
							
						
					
					
						commit
						f6b24a72ee
					
				
					 12 changed files with 259 additions and 1 deletions
				
			
		|  | @ -7,6 +7,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <LibWeb/DOM/Element.h> | ||||
| #include <LibWeb/HTML/DOMStringMap.h> | ||||
| #include <LibWeb/HTML/EventNames.h> | ||||
| #include <LibWeb/HTML/GlobalEventHandlers.h> | ||||
| 
 | ||||
|  | @ -35,6 +36,8 @@ public: | |||
| 
 | ||||
|     bool cannot_navigate() const; | ||||
| 
 | ||||
|     NonnullRefPtr<DOMStringMap> dataset() const { return m_dataset; } | ||||
| 
 | ||||
| protected: | ||||
|     virtual void parse_attribute(const FlyString& name, const String& value) override; | ||||
| 
 | ||||
|  | @ -48,6 +51,8 @@ private: | |||
|         Inherit, | ||||
|     }; | ||||
|     ContentEditableState content_editable_state() const; | ||||
| 
 | ||||
|     NonnullRefPtr<DOMStringMap> m_dataset; | ||||
| }; | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Luke Wilde
						Luke Wilde