#ifndef DocumentType_h
#define DocumentType_h
#include "Node.h"
namespace WebCore {
class NamedNodeMap;
class DocumentType final : public Node {
public:
static Ref<DocumentType> create(Document& document, const String& name, const String& publicId, const String& systemId)
{
return adoptRef(*new DocumentType(document, name, publicId, systemId));
}
NamedNodeMap* entitiesForBindings() const { return nullptr; }
NamedNodeMap* notationsForBindings() const { return nullptr; }
const String& name() const { return m_name; }
const String& publicId() const { return m_publicId; }
const String& systemId() const { return m_systemId; }
const String& internalSubset() const { return m_subset; }
private:
DocumentType(Document&, const String& name, const String& publicId, const String& systemId);
String nodeName() const override;
NodeType nodeType() const override;
Ref<Node> cloneNodeInternal(Document&, CloningOperation) override;
String m_name;
String m_publicId;
String m_systemId;
String m_subset;
};
}
SPECIALIZE_TYPE_TRAITS_BEGIN(WebCore::DocumentType)
static bool isType(const WebCore::Node& node) { return node.nodeType() == WebCore::Node::DOCUMENT_TYPE_NODE; }
SPECIALIZE_TYPE_TRAITS_END()
#endif