1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibWeb: Add namespace to Element

This commit is contained in:
Luke 2020-10-10 02:48:05 +01:00 committed by Andreas Kling
parent efaf03e986
commit e8a9e8aed5
167 changed files with 505 additions and 340 deletions

View file

@ -49,11 +49,11 @@ ConsoleWidget::ConsoleWidget()
auto base_document = adopt(*new Web::DOM::Document); auto base_document = adopt(*new Web::DOM::Document);
base_document->append_child(adopt(*new Web::DOM::DocumentType(base_document))); base_document->append_child(adopt(*new Web::DOM::DocumentType(base_document)));
auto html_element = Web::DOM::create_element(base_document, "html"); auto html_element = base_document->create_element("html");
base_document->append_child(html_element); base_document->append_child(html_element);
auto head_element = Web::DOM::create_element(base_document, "head"); auto head_element = base_document->create_element("head");
html_element->append_child(head_element); html_element->append_child(head_element);
auto body_element = Web::DOM::create_element(base_document, "body"); auto body_element = base_document->create_element("body");
html_element->append_child(body_element); html_element->append_child(body_element);
m_output_container = body_element; m_output_container = body_element;
@ -149,7 +149,7 @@ void ConsoleWidget::print_source_line(const StringView& source)
void ConsoleWidget::print_html(const StringView& line) void ConsoleWidget::print_html(const StringView& line)
{ {
auto paragraph = create_element(m_output_container->document(), "p"); auto paragraph = m_output_container->document().create_element("p");
paragraph->set_inner_html(line); paragraph->set_inner_html(line);
m_output_container->append_child(paragraph); m_output_container->append_child(paragraph);

View file

@ -42,14 +42,14 @@ IRCLogBuffer::IRCLogBuffer()
{ {
m_document = adopt(*new Web::DOM::Document); m_document = adopt(*new Web::DOM::Document);
m_document->append_child(adopt(*new Web::DOM::DocumentType(document()))); m_document->append_child(adopt(*new Web::DOM::DocumentType(document())));
auto html_element = create_element(document(), "html"); auto html_element = m_document->create_element("html");
m_document->append_child(html_element); m_document->append_child(html_element);
auto head_element = create_element(document(), "head"); auto head_element = m_document->create_element("head");
html_element->append_child(head_element); html_element->append_child(head_element);
auto style_element = create_element(document(), "style"); auto style_element = m_document->create_element("style");
style_element->append_child(adopt(*new Web::DOM::Text(document(), "div { font-family: Csilla; font-weight: lighter; }"))); style_element->append_child(adopt(*new Web::DOM::Text(document(), "div { font-family: Csilla; font-weight: lighter; }")));
head_element->append_child(style_element); head_element->append_child(style_element);
auto body_element = create_element(document(), "body"); auto body_element = m_document->create_element("body");
html_element->append_child(body_element); html_element->append_child(body_element);
m_container_element = body_element; m_container_element = body_element;
} }
@ -76,7 +76,7 @@ void IRCLogBuffer::add_message(char prefix, const String& name, const String& te
escape_html_entities(nick_string), escape_html_entities(nick_string),
escape_html_entities(text)); escape_html_entities(text));
auto wrapper = Web::DOM::create_element(*m_document, Web::HTML::TagNames::div); auto wrapper = m_document->create_element(Web::HTML::TagNames::div);
wrapper->set_attribute(Web::HTML::AttributeNames::style, String::formatted("color: {}", color.to_string())); wrapper->set_attribute(Web::HTML::AttributeNames::style, String::formatted("color: {}", color.to_string()));
wrapper->set_inner_html(html); wrapper->set_inner_html(html);
m_container_element->append_child(wrapper); m_container_element->append_child(wrapper);
@ -90,7 +90,7 @@ void IRCLogBuffer::add_message(const String& text, Color color)
"<span>{}</span>", "<span>{}</span>",
timestamp_string(), timestamp_string(),
escape_html_entities(text)); escape_html_entities(text));
auto wrapper = Web::DOM::create_element(*m_document, Web::HTML::TagNames::div); auto wrapper = m_document->create_element(Web::HTML::TagNames::div);
wrapper->set_attribute(Web::HTML::AttributeNames::style, String::formatted("color: {}", color.to_string())); wrapper->set_attribute(Web::HTML::AttributeNames::style, String::formatted("color: {}", color.to_string()));
wrapper->set_inner_html(html); wrapper->set_inner_html(html);
m_container_element->append_child(wrapper); m_container_element->append_child(wrapper);

View file

@ -166,6 +166,7 @@ set(SOURCES
Loader/ImageResource.cpp Loader/ImageResource.cpp
Loader/Resource.cpp Loader/Resource.cpp
Loader/ResourceLoader.cpp Loader/ResourceLoader.cpp
Namespace.cpp
OutOfProcessWebView.cpp OutOfProcessWebView.cpp
Page/EventHandler.cpp Page/EventHandler.cpp
Page/Frame.cpp Page/Frame.cpp

View file

@ -54,6 +54,7 @@
#include <LibWeb/InProcessWebView.h> #include <LibWeb/InProcessWebView.h>
#include <LibWeb/Layout/LayoutDocument.h> #include <LibWeb/Layout/LayoutDocument.h>
#include <LibWeb/Layout/LayoutTreeBuilder.h> #include <LibWeb/Layout/LayoutTreeBuilder.h>
#include <LibWeb/Namespace.h>
#include <LibWeb/Origin.h> #include <LibWeb/Origin.h>
#include <LibWeb/Page/Frame.h> #include <LibWeb/Page/Frame.h>
#include <LibWeb/SVG/TagNames.h> #include <LibWeb/SVG/TagNames.h>
@ -460,7 +461,8 @@ JS::Value Document::run_javascript(const StringView& source)
NonnullRefPtr<Element> Document::create_element(const String& tag_name) NonnullRefPtr<Element> Document::create_element(const String& tag_name)
{ {
return DOM::create_element(*this, tag_name); // FIXME: Let namespace be the HTML namespace, if this is an HTML document or thiss content type is "application/xhtml+xml", and null otherwise.
return DOM::create_element(*this, tag_name, Namespace::HTML);
} }
NonnullRefPtr<DocumentFragment> Document::create_document_fragment() NonnullRefPtr<DocumentFragment> Document::create_document_fragment()

View file

@ -46,9 +46,9 @@
namespace Web::DOM { namespace Web::DOM {
Element::Element(Document& document, const FlyString& tag_name) Element::Element(Document& document, const QualifiedName& qualified_name)
: ParentNode(document, NodeType::ELEMENT_NODE) : ParentNode(document, NodeType::ELEMENT_NODE)
, m_tag_name(tag_name) , m_qualified_name(qualified_name)
{ {
} }

View file

@ -34,6 +34,7 @@
#include <LibWeb/DOM/TagNames.h> #include <LibWeb/DOM/TagNames.h>
#include <LibWeb/HTML/AttributeNames.h> #include <LibWeb/HTML/AttributeNames.h>
#include <LibWeb/Layout/LayoutNode.h> #include <LibWeb/Layout/LayoutNode.h>
#include <LibWeb/QualifiedName.h>
namespace Web::DOM { namespace Web::DOM {
@ -44,15 +45,20 @@ class Element
public: public:
using WrapperType = Bindings::ElementWrapper; using WrapperType = Bindings::ElementWrapper;
Element(Document&, const FlyString& local_name); Element(Document&, const QualifiedName& qualified_name);
virtual ~Element() override; virtual ~Element() override;
virtual FlyString node_name() const final { return m_tag_name; } virtual FlyString node_name() const final { return m_qualified_name.local_name(); }
const FlyString& local_name() const { return m_tag_name; } const FlyString& local_name() const { return m_qualified_name.local_name(); }
// NOTE: This is for the JS bindings // NOTE: This is for the JS bindings
const FlyString& tag_name() const { return local_name(); } const FlyString& tag_name() const { return local_name(); }
const FlyString& namespace_() const { return m_qualified_name.namespace_(); }
// NOTE: This is for the JS bindings
const FlyString& namespace_uri() const { return namespace_(); }
bool has_attribute(const FlyString& name) const { return !attribute(name).is_null(); } bool has_attribute(const FlyString& name) const { return !attribute(name).is_null(); }
String attribute(const FlyString& name) const; String attribute(const FlyString& name) const;
String get_attribute(const FlyString& name) const { return attribute(name); } String get_attribute(const FlyString& name) const { return attribute(name); }
@ -100,7 +106,7 @@ private:
Attribute* find_attribute(const FlyString& name); Attribute* find_attribute(const FlyString& name);
const Attribute* find_attribute(const FlyString& name) const; const Attribute* find_attribute(const FlyString& name) const;
FlyString m_tag_name; QualifiedName m_qualified_name;
Vector<Attribute> m_attributes; Vector<Attribute> m_attributes;
RefPtr<CSS::StyleProperties> m_resolved_style; RefPtr<CSS::StyleProperties> m_resolved_style;

View file

@ -1,5 +1,5 @@
interface Element : Node { interface Element : Node {
readonly attribute DOMString? namespaceURI;
readonly attribute DOMString tagName; readonly attribute DOMString tagName;
DOMString? getAttribute(DOMString qualifiedName); DOMString? getAttribute(DOMString qualifiedName);
@ -16,4 +16,3 @@ interface Element : Node {
readonly attribute Element? nextElementSibling; readonly attribute Element? nextElementSibling;
readonly attribute Element? previousElementSibling; readonly attribute Element? previousElementSibling;
} }

View file

@ -101,159 +101,161 @@
namespace Web::DOM { namespace Web::DOM {
NonnullRefPtr<Element> create_element(Document& document, const FlyString& tag_name) NonnullRefPtr<Element> create_element(Document& document, const FlyString& tag_name, const FlyString& namespace_)
{ {
auto lowercase_tag_name = tag_name.to_lowercase(); auto lowercase_tag_name = tag_name.to_lowercase();
// FIXME: Add prefix when we support it.
auto qualified_name = QualifiedName(tag_name, {}, namespace_);
if (lowercase_tag_name == HTML::TagNames::a) if (lowercase_tag_name == HTML::TagNames::a)
return adopt(*new HTML::HTMLAnchorElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLAnchorElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::area) if (lowercase_tag_name == HTML::TagNames::area)
return adopt(*new HTML::HTMLAreaElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLAreaElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::audio) if (lowercase_tag_name == HTML::TagNames::audio)
return adopt(*new HTML::HTMLAudioElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLAudioElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::base) if (lowercase_tag_name == HTML::TagNames::base)
return adopt(*new HTML::HTMLBaseElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLBaseElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::blink) if (lowercase_tag_name == HTML::TagNames::blink)
return adopt(*new HTML::HTMLBlinkElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLBlinkElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::body) if (lowercase_tag_name == HTML::TagNames::body)
return adopt(*new HTML::HTMLBodyElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLBodyElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::br) if (lowercase_tag_name == HTML::TagNames::br)
return adopt(*new HTML::HTMLBRElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLBRElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::button) if (lowercase_tag_name == HTML::TagNames::button)
return adopt(*new HTML::HTMLButtonElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLButtonElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::canvas) if (lowercase_tag_name == HTML::TagNames::canvas)
return adopt(*new HTML::HTMLCanvasElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLCanvasElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::data) if (lowercase_tag_name == HTML::TagNames::data)
return adopt(*new HTML::HTMLDataElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLDataElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::datalist) if (lowercase_tag_name == HTML::TagNames::datalist)
return adopt(*new HTML::HTMLDataListElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLDataListElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::details) if (lowercase_tag_name == HTML::TagNames::details)
return adopt(*new HTML::HTMLDetailsElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLDetailsElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::dialog) if (lowercase_tag_name == HTML::TagNames::dialog)
return adopt(*new HTML::HTMLDialogElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLDialogElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::div) if (lowercase_tag_name == HTML::TagNames::div)
return adopt(*new HTML::HTMLDivElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLDivElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::dl) if (lowercase_tag_name == HTML::TagNames::dl)
return adopt(*new HTML::HTMLDListElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLDListElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::embed) if (lowercase_tag_name == HTML::TagNames::embed)
return adopt(*new HTML::HTMLEmbedElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLEmbedElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::fieldset) if (lowercase_tag_name == HTML::TagNames::fieldset)
return adopt(*new HTML::HTMLFieldSetElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLFieldSetElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::font) if (lowercase_tag_name == HTML::TagNames::font)
return adopt(*new HTML::HTMLFontElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLFontElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::form) if (lowercase_tag_name == HTML::TagNames::form)
return adopt(*new HTML::HTMLFormElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLFormElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::frame) if (lowercase_tag_name == HTML::TagNames::frame)
return adopt(*new HTML::HTMLFrameElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLFrameElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::frameset) if (lowercase_tag_name == HTML::TagNames::frameset)
return adopt(*new HTML::HTMLFrameSetElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLFrameSetElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::head) if (lowercase_tag_name == HTML::TagNames::head)
return adopt(*new HTML::HTMLHeadElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLHeadElement(document, qualified_name));
if (lowercase_tag_name.is_one_of(HTML::TagNames::h1, HTML::TagNames::h2, HTML::TagNames::h3, HTML::TagNames::h4, HTML::TagNames::h5, HTML::TagNames::h6)) if (lowercase_tag_name.is_one_of(HTML::TagNames::h1, HTML::TagNames::h2, HTML::TagNames::h3, HTML::TagNames::h4, HTML::TagNames::h5, HTML::TagNames::h6))
return adopt(*new HTML::HTMLHeadingElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLHeadingElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::hr) if (lowercase_tag_name == HTML::TagNames::hr)
return adopt(*new HTML::HTMLHRElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLHRElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::html) if (lowercase_tag_name == HTML::TagNames::html)
return adopt(*new HTML::HTMLHtmlElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLHtmlElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::iframe) if (lowercase_tag_name == HTML::TagNames::iframe)
return adopt(*new HTML::HTMLIFrameElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLIFrameElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::img) if (lowercase_tag_name == HTML::TagNames::img)
return adopt(*new HTML::HTMLImageElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLImageElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::input) if (lowercase_tag_name == HTML::TagNames::input)
return adopt(*new HTML::HTMLInputElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLInputElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::label) if (lowercase_tag_name == HTML::TagNames::label)
return adopt(*new HTML::HTMLLabelElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLLabelElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::legend) if (lowercase_tag_name == HTML::TagNames::legend)
return adopt(*new HTML::HTMLLegendElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLLegendElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::li) if (lowercase_tag_name == HTML::TagNames::li)
return adopt(*new HTML::HTMLLIElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLLIElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::link) if (lowercase_tag_name == HTML::TagNames::link)
return adopt(*new HTML::HTMLLinkElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLLinkElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::map) if (lowercase_tag_name == HTML::TagNames::map)
return adopt(*new HTML::HTMLMapElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLMapElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::marquee) if (lowercase_tag_name == HTML::TagNames::marquee)
return adopt(*new HTML::HTMLMarqueeElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLMarqueeElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::menu) if (lowercase_tag_name == HTML::TagNames::menu)
return adopt(*new HTML::HTMLMenuElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLMenuElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::meta) if (lowercase_tag_name == HTML::TagNames::meta)
return adopt(*new HTML::HTMLMetaElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLMetaElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::meter) if (lowercase_tag_name == HTML::TagNames::meter)
return adopt(*new HTML::HTMLMeterElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLMeterElement(document, qualified_name));
if (lowercase_tag_name.is_one_of(HTML::TagNames::ins, HTML::TagNames::del)) if (lowercase_tag_name.is_one_of(HTML::TagNames::ins, HTML::TagNames::del))
return adopt(*new HTML::HTMLModElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLModElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::object) if (lowercase_tag_name == HTML::TagNames::object)
return adopt(*new HTML::HTMLObjectElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLObjectElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::ol) if (lowercase_tag_name == HTML::TagNames::ol)
return adopt(*new HTML::HTMLOListElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLOListElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::optgroup) if (lowercase_tag_name == HTML::TagNames::optgroup)
return adopt(*new HTML::HTMLOptGroupElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLOptGroupElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::option) if (lowercase_tag_name == HTML::TagNames::option)
return adopt(*new HTML::HTMLOptionElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLOptionElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::output) if (lowercase_tag_name == HTML::TagNames::output)
return adopt(*new HTML::HTMLOutputElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLOutputElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::p) if (lowercase_tag_name == HTML::TagNames::p)
return adopt(*new HTML::HTMLParagraphElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLParagraphElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::param) if (lowercase_tag_name == HTML::TagNames::param)
return adopt(*new HTML::HTMLParamElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLParamElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::picture) if (lowercase_tag_name == HTML::TagNames::picture)
return adopt(*new HTML::HTMLPictureElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLPictureElement(document, qualified_name));
// NOTE: The obsolete elements "listing" and "xmp" are explicitly mapped to HTMLPreElement in the specification. // NOTE: The obsolete elements "listing" and "xmp" are explicitly mapped to HTMLPreElement in the specification.
if (lowercase_tag_name.is_one_of(HTML::TagNames::pre, HTML::TagNames::listing, HTML::TagNames::xmp)) if (lowercase_tag_name.is_one_of(HTML::TagNames::pre, HTML::TagNames::listing, HTML::TagNames::xmp))
return adopt(*new HTML::HTMLPreElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLPreElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::progress) if (lowercase_tag_name == HTML::TagNames::progress)
return adopt(*new HTML::HTMLProgressElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLProgressElement(document, qualified_name));
if (lowercase_tag_name.is_one_of(HTML::TagNames::blockquote, HTML::TagNames::q)) if (lowercase_tag_name.is_one_of(HTML::TagNames::blockquote, HTML::TagNames::q))
return adopt(*new HTML::HTMLQuoteElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLQuoteElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::script) if (lowercase_tag_name == HTML::TagNames::script)
return adopt(*new HTML::HTMLScriptElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLScriptElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::select) if (lowercase_tag_name == HTML::TagNames::select)
return adopt(*new HTML::HTMLSelectElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLSelectElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::slot) if (lowercase_tag_name == HTML::TagNames::slot)
return adopt(*new HTML::HTMLSlotElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLSlotElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::source) if (lowercase_tag_name == HTML::TagNames::source)
return adopt(*new HTML::HTMLSourceElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLSourceElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::span) if (lowercase_tag_name == HTML::TagNames::span)
return adopt(*new HTML::HTMLSpanElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLSpanElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::style) if (lowercase_tag_name == HTML::TagNames::style)
return adopt(*new HTML::HTMLStyleElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLStyleElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::caption) if (lowercase_tag_name == HTML::TagNames::caption)
return adopt(*new HTML::HTMLTableCaptionElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTableCaptionElement(document, qualified_name));
if (lowercase_tag_name.is_one_of(Web::HTML::TagNames::td, Web::HTML::TagNames::th)) if (lowercase_tag_name.is_one_of(Web::HTML::TagNames::td, Web::HTML::TagNames::th))
return adopt(*new HTML::HTMLTableCellElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTableCellElement(document, qualified_name));
if (lowercase_tag_name.is_one_of(HTML::TagNames::colgroup, HTML::TagNames::col)) if (lowercase_tag_name.is_one_of(HTML::TagNames::colgroup, HTML::TagNames::col))
return adopt(*new HTML::HTMLTableColElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTableColElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::table) if (lowercase_tag_name == HTML::TagNames::table)
return adopt(*new HTML::HTMLTableElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTableElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::tr) if (lowercase_tag_name == HTML::TagNames::tr)
return adopt(*new HTML::HTMLTableRowElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTableRowElement(document, qualified_name));
if (lowercase_tag_name.is_one_of(HTML::TagNames::tbody, HTML::TagNames::thead, HTML::TagNames::tfoot)) if (lowercase_tag_name.is_one_of(HTML::TagNames::tbody, HTML::TagNames::thead, HTML::TagNames::tfoot))
return adopt(*new HTML::HTMLTableSectionElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTableSectionElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::template_) if (lowercase_tag_name == HTML::TagNames::template_)
return adopt(*new HTML::HTMLTemplateElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTemplateElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::textarea) if (lowercase_tag_name == HTML::TagNames::textarea)
return adopt(*new HTML::HTMLTextAreaElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTextAreaElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::time) if (lowercase_tag_name == HTML::TagNames::time)
return adopt(*new HTML::HTMLTimeElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTimeElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::title) if (lowercase_tag_name == HTML::TagNames::title)
return adopt(*new HTML::HTMLTitleElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTitleElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::track) if (lowercase_tag_name == HTML::TagNames::track)
return adopt(*new HTML::HTMLTrackElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLTrackElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::ul) if (lowercase_tag_name == HTML::TagNames::ul)
return adopt(*new HTML::HTMLUListElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLUListElement(document, qualified_name));
if (lowercase_tag_name == HTML::TagNames::video) if (lowercase_tag_name == HTML::TagNames::video)
return adopt(*new HTML::HTMLVideoElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLVideoElement(document, qualified_name));
if (lowercase_tag_name.is_one_of( if (lowercase_tag_name.is_one_of(
HTML::TagNames::article, HTML::TagNames::section, HTML::TagNames::nav, HTML::TagNames::aside, HTML::TagNames::hgroup, HTML::TagNames::header, HTML::TagNames::footer, HTML::TagNames::address, HTML::TagNames::dt, HTML::TagNames::dd, HTML::TagNames::figure, HTML::TagNames::figcaption, HTML::TagNames::main, HTML::TagNames::em, HTML::TagNames::strong, HTML::TagNames::small, HTML::TagNames::s, HTML::TagNames::cite, HTML::TagNames::dfn, HTML::TagNames::abbr, HTML::TagNames::ruby, HTML::TagNames::rt, HTML::TagNames::rp, HTML::TagNames::code, HTML::TagNames::var, HTML::TagNames::samp, HTML::TagNames::kbd, HTML::TagNames::sub, HTML::TagNames::sup, HTML::TagNames::i, HTML::TagNames::b, HTML::TagNames::u, HTML::TagNames::mark, HTML::TagNames::bdi, HTML::TagNames::bdo, HTML::TagNames::wbr, HTML::TagNames::summary, HTML::TagNames::noscript, HTML::TagNames::article, HTML::TagNames::section, HTML::TagNames::nav, HTML::TagNames::aside, HTML::TagNames::hgroup, HTML::TagNames::header, HTML::TagNames::footer, HTML::TagNames::address, HTML::TagNames::dt, HTML::TagNames::dd, HTML::TagNames::figure, HTML::TagNames::figcaption, HTML::TagNames::main, HTML::TagNames::em, HTML::TagNames::strong, HTML::TagNames::small, HTML::TagNames::s, HTML::TagNames::cite, HTML::TagNames::dfn, HTML::TagNames::abbr, HTML::TagNames::ruby, HTML::TagNames::rt, HTML::TagNames::rp, HTML::TagNames::code, HTML::TagNames::var, HTML::TagNames::samp, HTML::TagNames::kbd, HTML::TagNames::sub, HTML::TagNames::sup, HTML::TagNames::i, HTML::TagNames::b, HTML::TagNames::u, HTML::TagNames::mark, HTML::TagNames::bdi, HTML::TagNames::bdo, HTML::TagNames::wbr, HTML::TagNames::summary, HTML::TagNames::noscript,
// Obsolete // Obsolete
HTML::TagNames::acronym, HTML::TagNames::basefont, HTML::TagNames::big, HTML::TagNames::center, HTML::TagNames::nobr, HTML::TagNames::noembed, HTML::TagNames::noframes, HTML::TagNames::plaintext, HTML::TagNames::rb, HTML::TagNames::rtc, HTML::TagNames::strike, HTML::TagNames::tt)) HTML::TagNames::acronym, HTML::TagNames::basefont, HTML::TagNames::big, HTML::TagNames::center, HTML::TagNames::nobr, HTML::TagNames::noembed, HTML::TagNames::noframes, HTML::TagNames::plaintext, HTML::TagNames::rb, HTML::TagNames::rtc, HTML::TagNames::strike, HTML::TagNames::tt))
return adopt(*new HTML::HTMLElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLElement(document, qualified_name));
if (lowercase_tag_name == SVG::TagNames::svg) if (lowercase_tag_name == SVG::TagNames::svg)
return adopt(*new SVG::SVGSVGElement(document, lowercase_tag_name)); return adopt(*new SVG::SVGSVGElement(document, qualified_name));
if (lowercase_tag_name == SVG::TagNames::path) if (lowercase_tag_name == SVG::TagNames::path)
return adopt(*new SVG::SVGPathElement(document, lowercase_tag_name)); return adopt(*new SVG::SVGPathElement(document, qualified_name));
// FIXME: If name is a valid custom element name, then return HTMLElement. // FIXME: If name is a valid custom element name, then return HTMLElement.
return adopt(*new HTML::HTMLUnknownElement(document, lowercase_tag_name)); return adopt(*new HTML::HTMLUnknownElement(document, qualified_name));
} }
} }

View file

@ -30,6 +30,6 @@
namespace Web::DOM { namespace Web::DOM {
NonnullRefPtr<Element> create_element(Document&, const FlyString& tag_name); NonnullRefPtr<Element> create_element(Document&, const FlyString& tag_name, const FlyString& namespace_);
} }

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLAnchorElement::HTMLAnchorElement(DOM::Document& document, const FlyString& tag_name) HTMLAnchorElement::HTMLAnchorElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLAnchorElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLAnchorElementWrapper; using WrapperType = Bindings::HTMLAnchorElementWrapper;
HTMLAnchorElement(DOM::Document&, const FlyString& local_name); HTMLAnchorElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLAnchorElement() override; virtual ~HTMLAnchorElement() override;
String href() const { return attribute(HTML::AttributeNames::href); } String href() const { return attribute(HTML::AttributeNames::href); }

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLAreaElement::HTMLAreaElement(DOM::Document& document, const FlyString& tag_name) HTMLAreaElement::HTMLAreaElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLAreaElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLAreaElementWrapper; using WrapperType = Bindings::HTMLAreaElementWrapper;
HTMLAreaElement(DOM::Document&, const FlyString& local_name); HTMLAreaElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLAreaElement() override; virtual ~HTMLAreaElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLAudioElement::HTMLAudioElement(DOM::Document& document, const FlyString& tag_name) HTMLAudioElement::HTMLAudioElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLMediaElement(document, tag_name) : HTMLMediaElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLAudioElement final : public HTMLMediaElement {
public: public:
using WrapperType = Bindings::HTMLAudioElementWrapper; using WrapperType = Bindings::HTMLAudioElementWrapper;
HTMLAudioElement(DOM::Document&, const FlyString& local_name); HTMLAudioElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLAudioElement() override; virtual ~HTMLAudioElement() override;
}; };

View file

@ -29,8 +29,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLBRElement::HTMLBRElement(DOM::Document& document, const FlyString& tag_name) HTMLBRElement::HTMLBRElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLBRElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLBRElementWrapper; using WrapperType = Bindings::HTMLBRElementWrapper;
HTMLBRElement(DOM::Document&, const FlyString& local_name); HTMLBRElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLBRElement() override; virtual ~HTMLBRElement() override;
virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override; virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override;

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLBaseElement::HTMLBaseElement(DOM::Document& document, const FlyString& tag_name) HTMLBaseElement::HTMLBaseElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLBaseElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLBaseElementWrapper; using WrapperType = Bindings::HTMLBaseElementWrapper;
HTMLBaseElement(DOM::Document&, const FlyString& local_name); HTMLBaseElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLBaseElement() override; virtual ~HTMLBaseElement() override;
}; };

View file

@ -32,8 +32,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLBlinkElement::HTMLBlinkElement(DOM::Document& document, const FlyString& tag_name) HTMLBlinkElement::HTMLBlinkElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
, m_timer(Core::Timer::construct()) , m_timer(Core::Timer::construct())
{ {
m_timer->set_interval(500); m_timer->set_interval(500);

View file

@ -33,7 +33,7 @@ namespace Web::HTML {
class HTMLBlinkElement final : public HTMLElement { class HTMLBlinkElement final : public HTMLElement {
public: public:
HTMLBlinkElement(DOM::Document&, const FlyString& local_name); HTMLBlinkElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLBlinkElement() override; virtual ~HTMLBlinkElement() override;
private: private:

View file

@ -31,8 +31,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLBodyElement::HTMLBodyElement(DOM::Document& document, const FlyString& tag_name) HTMLBodyElement::HTMLBodyElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLBodyElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLBodyElementWrapper; using WrapperType = Bindings::HTMLBodyElementWrapper;
HTMLBodyElement(DOM::Document&, const FlyString& local_name); HTMLBodyElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLBodyElement() override; virtual ~HTMLBodyElement() override;
virtual void parse_attribute(const FlyString&, const String&) override; virtual void parse_attribute(const FlyString&, const String&) override;

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLButtonElement::HTMLButtonElement(DOM::Document& document, const FlyString& tag_name) HTMLButtonElement::HTMLButtonElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLButtonElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLButtonElementWrapper; using WrapperType = Bindings::HTMLButtonElementWrapper;
HTMLButtonElement(DOM::Document&, const FlyString& local_name); HTMLButtonElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLButtonElement() override; virtual ~HTMLButtonElement() override;
}; };

View file

@ -36,8 +36,8 @@ namespace Web::HTML {
static constexpr auto max_canvas_area = 16384 * 16384; static constexpr auto max_canvas_area = 16384 * 16384;
HTMLCanvasElement::HTMLCanvasElement(DOM::Document& document, const FlyString& tag_name) HTMLCanvasElement::HTMLCanvasElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -38,7 +38,7 @@ class HTMLCanvasElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLCanvasElementWrapper; using WrapperType = Bindings::HTMLCanvasElementWrapper;
HTMLCanvasElement(DOM::Document&, const FlyString& local_name); HTMLCanvasElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLCanvasElement() override; virtual ~HTMLCanvasElement() override;
const Gfx::Bitmap* bitmap() const { return m_bitmap; } const Gfx::Bitmap* bitmap() const { return m_bitmap; }

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLDListElement::HTMLDListElement(DOM::Document& document, const FlyString& tag_name) HTMLDListElement::HTMLDListElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLDListElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLDListElementWrapper; using WrapperType = Bindings::HTMLDListElementWrapper;
HTMLDListElement(DOM::Document&, const FlyString& local_name); HTMLDListElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLDListElement() override; virtual ~HTMLDListElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLDataElement::HTMLDataElement(DOM::Document& document, const FlyString& tag_name) HTMLDataElement::HTMLDataElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLDataElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLDataElementWrapper; using WrapperType = Bindings::HTMLDataElementWrapper;
HTMLDataElement(DOM::Document&, const FlyString& local_name); HTMLDataElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLDataElement() override; virtual ~HTMLDataElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLDataListElement::HTMLDataListElement(DOM::Document& document, const FlyString& tag_name) HTMLDataListElement::HTMLDataListElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLDataListElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLDataListElementWrapper; using WrapperType = Bindings::HTMLDataListElementWrapper;
HTMLDataListElement(DOM::Document&, const FlyString& local_name); HTMLDataListElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLDataListElement() override; virtual ~HTMLDataListElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLDetailsElement::HTMLDetailsElement(DOM::Document& document, const FlyString& tag_name) HTMLDetailsElement::HTMLDetailsElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLDetailsElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLDetailsElementWrapper; using WrapperType = Bindings::HTMLDetailsElementWrapper;
HTMLDetailsElement(DOM::Document&, const FlyString& local_name); HTMLDetailsElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLDetailsElement() override; virtual ~HTMLDetailsElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLDialogElement::HTMLDialogElement(DOM::Document& document, const FlyString& tag_name) HTMLDialogElement::HTMLDialogElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLDialogElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLDialogElementWrapper; using WrapperType = Bindings::HTMLDialogElementWrapper;
HTMLDialogElement(DOM::Document&, const FlyString& local_name); HTMLDialogElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLDialogElement() override; virtual ~HTMLDialogElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLDivElement::HTMLDivElement(DOM::Document& document, const FlyString& tag_name) HTMLDivElement::HTMLDivElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLDivElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLDivElementWrapper; using WrapperType = Bindings::HTMLDivElementWrapper;
HTMLDivElement(DOM::Document&, const FlyString& local_name); HTMLDivElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLDivElement() override; virtual ~HTMLDivElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLElement::HTMLElement(DOM::Document& document, const FlyString& tag_name) HTMLElement::HTMLElement(DOM::Document& document, const QualifiedName& qualified_name)
: Element(document, tag_name) : Element(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLElement : public DOM::Element {
public: public:
using WrapperType = Bindings::HTMLElementWrapper; using WrapperType = Bindings::HTMLElementWrapper;
HTMLElement(DOM::Document&, const FlyString& local_name); HTMLElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLElement() override; virtual ~HTMLElement() override;
String title() const { return attribute(HTML::AttributeNames::title); } String title() const { return attribute(HTML::AttributeNames::title); }

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLEmbedElement::HTMLEmbedElement(DOM::Document& document, const FlyString& tag_name) HTMLEmbedElement::HTMLEmbedElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLEmbedElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLEmbedElementWrapper; using WrapperType = Bindings::HTMLEmbedElementWrapper;
HTMLEmbedElement(DOM::Document&, const FlyString& local_name); HTMLEmbedElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLEmbedElement() override; virtual ~HTMLEmbedElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLFieldSetElement::HTMLFieldSetElement(DOM::Document& document, const FlyString& tag_name) HTMLFieldSetElement::HTMLFieldSetElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLFieldSetElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLFieldSetElementWrapper; using WrapperType = Bindings::HTMLFieldSetElementWrapper;
HTMLFieldSetElement(DOM::Document&, const FlyString& local_name); HTMLFieldSetElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLFieldSetElement() override; virtual ~HTMLFieldSetElement() override;
const String& type() const const String& type() const

View file

@ -30,8 +30,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLFontElement::HTMLFontElement(DOM::Document& document, const FlyString& tag_name) HTMLFontElement::HTMLFontElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -32,7 +32,7 @@ namespace Web::HTML {
class HTMLFontElement final : public HTMLElement { class HTMLFontElement final : public HTMLElement {
public: public:
HTMLFontElement(DOM::Document&, const FlyString& local_name); HTMLFontElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLFontElement() override; virtual ~HTMLFontElement() override;
virtual void apply_presentational_hints(CSS::StyleProperties&) const override; virtual void apply_presentational_hints(CSS::StyleProperties&) const override;

View file

@ -33,8 +33,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLFormElement::HTMLFormElement(DOM::Document& document, const FlyString& tag_name) HTMLFormElement::HTMLFormElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -35,7 +35,7 @@ class HTMLFormElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLFormElementWrapper; using WrapperType = Bindings::HTMLFormElementWrapper;
HTMLFormElement(DOM::Document&, const FlyString& local_name); HTMLFormElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLFormElement() override; virtual ~HTMLFormElement() override;
String action() const { return attribute(HTML::AttributeNames::action); } String action() const { return attribute(HTML::AttributeNames::action); }

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLFrameElement::HTMLFrameElement(DOM::Document& document, const FlyString& tag_name) HTMLFrameElement::HTMLFrameElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -35,7 +35,7 @@ class HTMLFrameElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLFrameElementWrapper; using WrapperType = Bindings::HTMLFrameElementWrapper;
HTMLFrameElement(DOM::Document&, const FlyString& local_name); HTMLFrameElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLFrameElement() override; virtual ~HTMLFrameElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLFrameSetElement::HTMLFrameSetElement(DOM::Document& document, const FlyString& tag_name) HTMLFrameSetElement::HTMLFrameSetElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -35,7 +35,7 @@ class HTMLFrameSetElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLFrameSetElementWrapper; using WrapperType = Bindings::HTMLFrameSetElementWrapper;
HTMLFrameSetElement(DOM::Document&, const FlyString& local_name); HTMLFrameSetElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLFrameSetElement() override; virtual ~HTMLFrameSetElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLHRElement::HTMLHRElement(DOM::Document& document, const FlyString& tag_name) HTMLHRElement::HTMLHRElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLHRElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLHRElementWrapper; using WrapperType = Bindings::HTMLHRElementWrapper;
HTMLHRElement(DOM::Document&, const FlyString& local_name); HTMLHRElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLHRElement() override; virtual ~HTMLHRElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLHeadElement::HTMLHeadElement(DOM::Document& document, const FlyString& tag_name) HTMLHeadElement::HTMLHeadElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLHeadElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLHeadElementWrapper; using WrapperType = Bindings::HTMLHeadElementWrapper;
HTMLHeadElement(DOM::Document&, const FlyString& local_name); HTMLHeadElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLHeadElement() override; virtual ~HTMLHeadElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLHeadingElement::HTMLHeadingElement(DOM::Document& document, const FlyString& tag_name) HTMLHeadingElement::HTMLHeadingElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLHeadingElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLHeadingElementWrapper; using WrapperType = Bindings::HTMLHeadingElementWrapper;
HTMLHeadingElement(DOM::Document&, const FlyString& local_name); HTMLHeadingElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLHeadingElement() override; virtual ~HTMLHeadingElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLHtmlElement::HTMLHtmlElement(DOM::Document& document, const FlyString& tag_name) HTMLHtmlElement::HTMLHtmlElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLHtmlElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLHtmlElementWrapper; using WrapperType = Bindings::HTMLHtmlElementWrapper;
HTMLHtmlElement(DOM::Document&, const FlyString& local_name); HTMLHtmlElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLHtmlElement() override; virtual ~HTMLHtmlElement() override;
}; };

View file

@ -43,8 +43,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLIFrameElement::HTMLIFrameElement(DOM::Document& document, const FlyString& tag_name) HTMLIFrameElement::HTMLIFrameElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLIFrameElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLIFrameElementWrapper; using WrapperType = Bindings::HTMLIFrameElementWrapper;
HTMLIFrameElement(DOM::Document&, const FlyString& local_name); HTMLIFrameElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLIFrameElement() override; virtual ~HTMLIFrameElement() override;
virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override; virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override;

View file

@ -36,8 +36,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLImageElement::HTMLImageElement(DOM::Document& document, const FlyString& tag_name) HTMLImageElement::HTMLImageElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
m_image_loader.on_load = [this] { m_image_loader.on_load = [this] {
this->document().update_layout(); this->document().update_layout();

View file

@ -38,7 +38,7 @@ class HTMLImageElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLImageElementWrapper; using WrapperType = Bindings::HTMLImageElementWrapper;
HTMLImageElement(DOM::Document&, const FlyString& local_name); HTMLImageElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLImageElement() override; virtual ~HTMLImageElement() override;
virtual void parse_attribute(const FlyString& name, const String& value) override; virtual void parse_attribute(const FlyString& name, const String& value) override;

View file

@ -38,8 +38,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLInputElement::HTMLInputElement(DOM::Document& document, const FlyString& tag_name) HTMLInputElement::HTMLInputElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLInputElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLInputElementWrapper; using WrapperType = Bindings::HTMLInputElementWrapper;
HTMLInputElement(DOM::Document&, const FlyString& local_name); HTMLInputElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLInputElement() override; virtual ~HTMLInputElement() override;
virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override; virtual RefPtr<LayoutNode> create_layout_node(const CSS::StyleProperties* parent_style) override;

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLLIElement::HTMLLIElement(DOM::Document& document, const FlyString& tag_name) HTMLLIElement::HTMLLIElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLLIElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLLIElementWrapper; using WrapperType = Bindings::HTMLLIElementWrapper;
HTMLLIElement(DOM::Document&, const FlyString& local_name); HTMLLIElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLLIElement() override; virtual ~HTMLLIElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLLabelElement::HTMLLabelElement(DOM::Document& document, const FlyString& tag_name) HTMLLabelElement::HTMLLabelElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLLabelElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLLabelElementWrapper; using WrapperType = Bindings::HTMLLabelElementWrapper;
HTMLLabelElement(DOM::Document&, const FlyString& local_name); HTMLLabelElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLLabelElement() override; virtual ~HTMLLabelElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLLegendElement::HTMLLegendElement(DOM::Document& document, const FlyString& tag_name) HTMLLegendElement::HTMLLegendElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLLegendElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLLegendElementWrapper; using WrapperType = Bindings::HTMLLegendElementWrapper;
HTMLLegendElement(DOM::Document&, const FlyString& local_name); HTMLLegendElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLLegendElement() override; virtual ~HTMLLegendElement() override;
}; };

View file

@ -34,8 +34,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLLinkElement::HTMLLinkElement(DOM::Document& document, const FlyString& tag_name) HTMLLinkElement::HTMLLinkElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -37,7 +37,7 @@ class HTMLLinkElement final
public: public:
using WrapperType = Bindings::HTMLLinkElementWrapper; using WrapperType = Bindings::HTMLLinkElementWrapper;
HTMLLinkElement(DOM::Document&, const FlyString& local_name); HTMLLinkElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLLinkElement() override; virtual ~HTMLLinkElement() override;
virtual void inserted_into(Node&) override; virtual void inserted_into(Node&) override;

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLMapElement::HTMLMapElement(DOM::Document& document, const FlyString& tag_name) HTMLMapElement::HTMLMapElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLMapElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLMapElementWrapper; using WrapperType = Bindings::HTMLMapElementWrapper;
HTMLMapElement(DOM::Document&, const FlyString& local_name); HTMLMapElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLMapElement() override; virtual ~HTMLMapElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLMarqueeElement::HTMLMarqueeElement(DOM::Document& document, const FlyString& tag_name) HTMLMarqueeElement::HTMLMarqueeElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -35,7 +35,7 @@ class HTMLMarqueeElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLMarqueeElementWrapper; using WrapperType = Bindings::HTMLMarqueeElementWrapper;
HTMLMarqueeElement(DOM::Document&, const FlyString& local_name); HTMLMarqueeElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLMarqueeElement() override; virtual ~HTMLMarqueeElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLMediaElement::HTMLMediaElement(DOM::Document& document, const FlyString& tag_name) HTMLMediaElement::HTMLMediaElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLMediaElement : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLMediaElementWrapper; using WrapperType = Bindings::HTMLMediaElementWrapper;
HTMLMediaElement(DOM::Document&, const FlyString& local_name); HTMLMediaElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLMediaElement() override; virtual ~HTMLMediaElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLMenuElement::HTMLMenuElement(DOM::Document& document, const FlyString& tag_name) HTMLMenuElement::HTMLMenuElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLMenuElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLMenuElementWrapper; using WrapperType = Bindings::HTMLMenuElementWrapper;
HTMLMenuElement(DOM::Document&, const FlyString& local_name); HTMLMenuElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLMenuElement() override; virtual ~HTMLMenuElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLMetaElement::HTMLMetaElement(DOM::Document& document, const FlyString& tag_name) HTMLMetaElement::HTMLMetaElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLMetaElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLMetaElementWrapper; using WrapperType = Bindings::HTMLMetaElementWrapper;
HTMLMetaElement(DOM::Document&, const FlyString& local_name); HTMLMetaElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLMetaElement() override; virtual ~HTMLMetaElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLMeterElement::HTMLMeterElement(DOM::Document& document, const FlyString& tag_name) HTMLMeterElement::HTMLMeterElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLMeterElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLMeterElementWrapper; using WrapperType = Bindings::HTMLMeterElementWrapper;
HTMLMeterElement(DOM::Document&, const FlyString& local_name); HTMLMeterElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLMeterElement() override; virtual ~HTMLMeterElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLModElement::HTMLModElement(DOM::Document& document, const FlyString& tag_name) HTMLModElement::HTMLModElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLModElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLModElementWrapper; using WrapperType = Bindings::HTMLModElementWrapper;
HTMLModElement(DOM::Document&, const FlyString& local_name); HTMLModElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLModElement() override; virtual ~HTMLModElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLOListElement::HTMLOListElement(DOM::Document& document, const FlyString& tag_name) HTMLOListElement::HTMLOListElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLOListElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLOListElementWrapper; using WrapperType = Bindings::HTMLOListElementWrapper;
HTMLOListElement(DOM::Document&, const FlyString& local_name); HTMLOListElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLOListElement() override; virtual ~HTMLOListElement() override;
}; };

View file

@ -35,8 +35,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLObjectElement::HTMLObjectElement(DOM::Document& document, const FlyString& tag_name) HTMLObjectElement::HTMLObjectElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
m_image_loader.on_load = [this] { m_image_loader.on_load = [this] {
m_should_show_fallback_content = false; m_should_show_fallback_content = false;

View file

@ -37,7 +37,7 @@ class HTMLObjectElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLObjectElementWrapper; using WrapperType = Bindings::HTMLObjectElementWrapper;
HTMLObjectElement(DOM::Document&, const FlyString& local_name); HTMLObjectElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLObjectElement() override; virtual ~HTMLObjectElement() override;
virtual void parse_attribute(const FlyString& name, const String& value) override; virtual void parse_attribute(const FlyString& name, const String& value) override;

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLOptGroupElement::HTMLOptGroupElement(DOM::Document& document, const FlyString& tag_name) HTMLOptGroupElement::HTMLOptGroupElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLOptGroupElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLOptGroupElementWrapper; using WrapperType = Bindings::HTMLOptGroupElementWrapper;
HTMLOptGroupElement(DOM::Document&, const FlyString& local_name); HTMLOptGroupElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLOptGroupElement() override; virtual ~HTMLOptGroupElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLOptionElement::HTMLOptionElement(DOM::Document& document, const FlyString& tag_name) HTMLOptionElement::HTMLOptionElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLOptionElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLOptionElementWrapper; using WrapperType = Bindings::HTMLOptionElementWrapper;
HTMLOptionElement(DOM::Document&, const FlyString& local_name); HTMLOptionElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLOptionElement() override; virtual ~HTMLOptionElement() override;
}; };

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLOutputElement::HTMLOutputElement(DOM::Document& document, const FlyString& tag_name) HTMLOutputElement::HTMLOutputElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

View file

@ -34,7 +34,7 @@ class HTMLOutputElement final : public HTMLElement {
public: public:
using WrapperType = Bindings::HTMLOutputElementWrapper; using WrapperType = Bindings::HTMLOutputElementWrapper;
HTMLOutputElement(DOM::Document&, const FlyString& local_name); HTMLOutputElement(DOM::Document&, const QualifiedName& qualified_name);
virtual ~HTMLOutputElement() override; virtual ~HTMLOutputElement() override;
const String& type() const const String& type() const

View file

@ -28,8 +28,8 @@
namespace Web::HTML { namespace Web::HTML {
HTMLParagraphElement::HTMLParagraphElement(DOM::Document& document, const FlyString& tag_name) HTMLParagraphElement::HTMLParagraphElement(DOM::Document& document, const QualifiedName& qualified_name)
: HTMLElement(document, tag_name) : HTMLElement(document, qualified_name)
{ {
} }

Some files were not shown because too many files have changed in this diff Show more