| 
									
										
										
										
											2023-04-05 23:00:08 +01:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * Copyright (c) 2023, Luke Wilde <lukew@serenityos.org> | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: BSD-2-Clause | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <LibWeb/Bindings/XMLDocumentPrototype.h>
 | 
					
						
							|  |  |  | #include <LibWeb/DOM/XMLDocument.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace Web::DOM { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-19 19:47:52 +01:00
										 |  |  | JS_DEFINE_ALLOCATOR(XMLDocument); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-18 16:22:27 +13:00
										 |  |  | JS::NonnullGCPtr<XMLDocument> XMLDocument::create(JS::Realm& realm, URL::URL const& url) | 
					
						
							| 
									
										
										
										
											2023-10-07 08:11:18 +02:00
										 |  |  | { | 
					
						
							|  |  |  |     return realm.heap().allocate<XMLDocument>(realm, realm, url); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-03-18 16:22:27 +13:00
										 |  |  | XMLDocument::XMLDocument(JS::Realm& realm, URL::URL const& url) | 
					
						
							| 
									
										
										
										
											2023-04-05 23:00:08 +01:00
										 |  |  |     : Document(realm, url) | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-08-07 08:41:28 +02:00
										 |  |  | void XMLDocument::initialize(JS::Realm& realm) | 
					
						
							| 
									
										
										
										
											2023-04-05 23:00:08 +01:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2023-08-07 08:41:28 +02:00
										 |  |  |     Base::initialize(realm); | 
					
						
							| 
									
										
										
										
											2024-03-16 13:13:08 +01:00
										 |  |  |     WEB_SET_PROTOTYPE_FOR_INTERFACE(XMLDocument); | 
					
						
							| 
									
										
										
										
											2023-04-05 23:00:08 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |