/* * Copyright (c) 2023, Jonah Shafran * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::MathML { class MathMLElement : public DOM::Element , public HTML::GlobalEventHandlers , public HTML::HTMLOrSVGElement { WEB_PLATFORM_OBJECT(MathMLElement, DOM::Element); GC_DECLARE_ALLOCATOR(MathMLElement); public: virtual ~MathMLElement() override; virtual Optional default_role() const override; protected: virtual void attribute_changed(FlyString const& name, Optional const& old_value, Optional const& value, Optional const& namespace_) override; virtual WebIDL::ExceptionOr cloned(DOM::Node&, bool) override; virtual void inserted() override; virtual GC::Ptr global_event_handlers_to_event_target(FlyString const&) override { return *this; } private: MathMLElement(DOM::Document&, DOM::QualifiedName); virtual void visit_edges(Visitor&) override; virtual void initialize(JS::Realm&) override; }; }