mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +00:00 
			
		
		
		
	LibWeb: Include DOM Node ID in serialized JSON
This will be used in the DOM Inspector to communicate which node is being inspected.
This commit is contained in:
		
							parent
							
								
									2d6a02f03b
								
							
						
					
					
						commit
						1159eefff3
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -640,6 +640,7 @@ RefPtr<Document> Node::owner_document() const | |||
| void Node::serialize_tree_as_json(JsonObjectSerializer<StringBuilder>& object) const | ||||
| { | ||||
|     object.add("name", node_name().view()); | ||||
|     object.add("id", id()); | ||||
|     if (is_document()) { | ||||
|         object.add("type", "document"); | ||||
|     } else if (is_element()) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins