HTMLScriptElement.h [plain text]
#ifndef HTMLScriptElement_h
#define HTMLScriptElement_h
#include "HTMLElement.h"
#include "ScriptElement.h"
namespace WebCore {
class HTMLScriptElement final : public HTMLElement, public ScriptElement {
public:
static Ref<HTMLScriptElement> create(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted = false);
String text() const { return scriptContent(); }
void setText(const String&);
URL src() const;
void setAsync(bool);
bool async() const;
private:
HTMLScriptElement(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) override;
virtual InsertionNotificationRequest insertedInto(ContainerNode&) override;
virtual void finishedInsertingSubtree() override;
virtual void childrenChanged(const ChildChange&) override;
virtual bool isURLAttribute(const Attribute&) const override;
virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override;
virtual String sourceAttributeValue() const override;
virtual String charsetAttributeValue() const override;
virtual String typeAttributeValue() const override;
virtual String languageAttributeValue() const override;
virtual String forAttributeValue() const override;
virtual String eventAttributeValue() const override;
virtual bool asyncAttributeValue() const override;
virtual bool deferAttributeValue() const override;
virtual bool hasSourceAttribute() const override;
virtual void dispatchLoadEvent() override;
virtual RefPtr<Element> cloneElementWithoutAttributesAndChildren(Document&) override;
};
}
#endif