LibWeb: Make DOMParsing::parse_fragment take a StringView

It calls HTMLParser::parse_html_fragment which already accepts a
StringView.
This commit is contained in:
Shannon Booth 2023-09-21 20:11:48 +12:00 committed by Andreas Kling
parent ab674f3bf6
commit dbd46f240b
Notes: sideshowbarker 2024-07-17 22:55:25 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@
namespace Web::DOMParsing {
// 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.