HTMLScriptElement.h [plain text]
#pragma once
#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(); }
WEBCORE_EXPORT void setText(const String&);
URL src() const;
WEBCORE_EXPORT void setAsync(bool);
WEBCORE_EXPORT bool async() const;
WEBCORE_EXPORT void setCrossOrigin(const AtomicString&);
WEBCORE_EXPORT String crossOrigin() const;
private:
HTMLScriptElement(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted);
void parseAttribute(const QualifiedName&, const AtomicString&) final;
InsertionNotificationRequest insertedInto(ContainerNode&) final;
void finishedInsertingSubtree() final;
void childrenChanged(const ChildChange&) final;
bool isURLAttribute(const Attribute&) const final;
void addSubresourceAttributeURLs(ListHashSet<URL>&) const final;
String sourceAttributeValue() const final;
String charsetAttributeValue() const final;
String typeAttributeValue() const final;
String languageAttributeValue() const final;
String forAttributeValue() const final;
String eventAttributeValue() const final;
bool asyncAttributeValue() const final;
bool deferAttributeValue() const final;
bool hasSourceAttribute() const final;
void dispatchLoadEvent() final;
Ref<Element> cloneElementWithoutAttributesAndChildren(Document&) final;
};
}