15 #ifndef SHAKA_EMBEDDED_JS_DOM_DOCUMENT_H_ 16 #define SHAKA_EMBEDDED_JS_DOM_DOCUMENT_H_ 62 const std::string&
name)
const override;
70 const std::string& namespace_uri,
const std::string& qualified_name);
73 static std::atomic<Document*> instance_;
74 const uint64_t created_at_;
86 #endif // SHAKA_EMBEDDED_JS_DOM_DOCUMENT_H_
std::vector< RefPtr< Element > > GetElementsByTagName(const std::string &name) const override
static Document * Create()
RefPtr< Element > CreateElement(const std::string &name)
uint64_t created_at() const
RefPtr< Comment > CreateComment(const std::string &data)
optional< std::string > TextContent() const override
RefPtr< Text > CreateTextNode(const std::string &data)
static RefPtr< Document > EnsureGlobalDocument()
optional< std::string > NodeValue() const override
RefPtr< Element > DocumentElement() const
std::string node_name() const override
ExceptionOr< RefPtr< Attr > > CreateAttribute(const std::string &name)
ExceptionOr< RefPtr< Attr > > CreateAttributeNS(const std::string &namespace_uri, const std::string &qualified_name)