mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:18:12 +00:00
LibWeb: Make DOMParsing::parse_fragment take a StringView
It calls HTMLParser::parse_html_fragment which already accepts a StringView.
This commit is contained in:
parent
ab674f3bf6
commit
dbd46f240b
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
||||||
namespace Web::DOMParsing {
|
namespace Web::DOMParsing {
|
||||||
|
|
||||||
// https://w3c.github.io/DOM-Parsing/#dfn-fragment-parsing-algorithm
|
// https://w3c.github.io/DOM-Parsing/#dfn-fragment-parsing-algorithm
|
||||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<DOM::DocumentFragment>> parse_fragment(DeprecatedString const& markup, DOM::Element& context_element)
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<DOM::DocumentFragment>> parse_fragment(StringView markup, DOM::Element& context_element)
|
||||||
{
|
{
|
||||||
// FIXME: Handle XML documents.
|
// FIXME: Handle XML documents.
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,6 @@ namespace Web::DOMParsing {
|
||||||
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
|
||||||
WebIDL::ExceptionOr<void> inner_html_setter(JS::NonnullGCPtr<DOM::Node> context_object, StringView value);
|
WebIDL::ExceptionOr<void> inner_html_setter(JS::NonnullGCPtr<DOM::Node> context_object, StringView value);
|
||||||
|
|
||||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<DOM::DocumentFragment>> parse_fragment(DeprecatedString const& markup, DOM::Element& context_element);
|
WebIDL::ExceptionOr<JS::NonnullGCPtr<DOM::DocumentFragment>> parse_fragment(StringView markup, DOM::Element& context_element);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue