|
@@ -99,6 +99,7 @@
|
|
#include <LibWeb/SVG/SVGStopElement.h>
|
|
#include <LibWeb/SVG/SVGStopElement.h>
|
|
#include <LibWeb/SVG/SVGSymbolElement.h>
|
|
#include <LibWeb/SVG/SVGSymbolElement.h>
|
|
#include <LibWeb/SVG/SVGTextContentElement.h>
|
|
#include <LibWeb/SVG/SVGTextContentElement.h>
|
|
|
|
+#include <LibWeb/SVG/SVGTitleElement.h>
|
|
#include <LibWeb/SVG/SVGUseElement.h>
|
|
#include <LibWeb/SVG/SVGUseElement.h>
|
|
#include <LibWeb/SVG/TagNames.h>
|
|
#include <LibWeb/SVG/TagNames.h>
|
|
#include <LibWeb/WebIDL/AbstractOperations.h>
|
|
#include <LibWeb/WebIDL/AbstractOperations.h>
|
|
@@ -459,6 +460,8 @@ static WebIDL::ExceptionOr<JS::GCPtr<SVG::SVGElement>> create_svg_element(JS::Re
|
|
return MUST_OR_THROW_OOM(realm.heap().allocate<SVG::SVGSymbolElement>(realm, document, move(qualified_name)));
|
|
return MUST_OR_THROW_OOM(realm.heap().allocate<SVG::SVGSymbolElement>(realm, document, move(qualified_name)));
|
|
if (local_name == SVG::TagNames::text)
|
|
if (local_name == SVG::TagNames::text)
|
|
return MUST_OR_THROW_OOM(realm.heap().allocate<SVG::SVGTextContentElement>(realm, document, move(qualified_name)));
|
|
return MUST_OR_THROW_OOM(realm.heap().allocate<SVG::SVGTextContentElement>(realm, document, move(qualified_name)));
|
|
|
|
+ if (local_name == SVG::TagNames::title)
|
|
|
|
+ return MUST_OR_THROW_OOM(realm.heap().allocate<SVG::SVGTitleElement>(realm, document, move(qualified_name)));
|
|
if (local_name == SVG::TagNames::use)
|
|
if (local_name == SVG::TagNames::use)
|
|
return MUST_OR_THROW_OOM(realm.heap().allocate<SVG::SVGUseElement>(realm, document, move(qualified_name)));
|
|
return MUST_OR_THROW_OOM(realm.heap().allocate<SVG::SVGUseElement>(realm, document, move(qualified_name)));
|
|
|
|
|