#ifndef HTML_DOCUMENTIMPL_H
#define HTML_DOCUMENTIMPL_H
#include "CachedResourceClient.h"
#include "Document.h"
#include "HTMLCollection.h"
namespace WebCore {
class DeprecatedString;
class FrameView;
class HTMLElement;
class HTMLDocument : public Document, public CachedResourceClient
{
public:
HTMLDocument(DOMImplementation*, FrameView* = 0);
~HTMLDocument();
virtual bool isHTMLDocument() const { return true; }
String lastModified() const;
String cookie() const;
void setCookie(const String&);
void setBody(HTMLElement*, ExceptionCode&);
virtual Tokenizer* createTokenizer();
virtual bool childAllowed(Node*);
virtual PassRefPtr<Element> createElement(const String& tagName, ExceptionCode&);
virtual void determineParseMode(const DeprecatedString&);
void addNamedItem(const String& name);
void removeNamedItem(const String& name);
bool hasNamedItem(const String& name);
void addDocExtraNamedItem(const String& name);
void removeDocExtraNamedItem(const String& name);
bool hasDocExtraNamedItem(const String& name);
typedef HashMap<StringImpl*, int> NameCountMap;
protected:
HTMLElement* bodyElement;
HTMLElement* htmlElement;
private:
NameCountMap namedItemCounts;
NameCountMap docExtraNamedItemCounts;
};
}
#endif