mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:12:44 +00:00 
			
		
		
		
	 0762388709
			
		
	
	
		0762388709
		
	
	
	
	
		
			
			Before this change, we were producing a generic DOM::Document, which was not distinguishable from an XMLDocument by IDL interface type.
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			526 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			526 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2023, Luke Wilde <lukew@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/DOM/Document.h>
 | |
| 
 | |
| namespace Web::DOM {
 | |
| 
 | |
| class XMLDocument final : public Document {
 | |
|     WEB_PLATFORM_OBJECT(XMLDocument, Document);
 | |
| 
 | |
| public:
 | |
|     static JS::NonnullGCPtr<XMLDocument> create(JS::Realm&, AK::URL const&);
 | |
|     virtual ~XMLDocument() override = default;
 | |
| 
 | |
| private:
 | |
|     XMLDocument(JS::Realm& realm, AK::URL const& url);
 | |
| 
 | |
|     virtual void initialize(JS::Realm&) override;
 | |
| };
 | |
| 
 | |
| }
 |