LibWeb: Move XMLSerializer into HTML directory

The DOMParsing spec is in the process of being merged into the HTML one,
gradually. The linked spec change moves XMLSerializer, but many of the
algorithms are still in the DOMParsing spec so I've left the links to
those alone.

I've done my best to update the GN build but since I'm not actually
using it, I might have done that wrong.

Corresponds to 2edb8cc7ee
This commit is contained in:
Sam Atkins 2025-03-03 13:04:14 +00:00 committed by Tim Ledbetter
parent a11848f163
commit f148af0a93
Notes: github-actions[bot] 2025-03-04 16:45:51 +00:00
18 changed files with 25 additions and 32 deletions

View file

@ -2033,13 +2033,13 @@ Messages::WebDriverClient::GetSourceResponse WebDriverConnection::get_source()
// 3. Let source be the result of invoking the fragment serializing algorithm on a fictional node whose only
// child is the document element providing true for the require well-formed flag. If this causes an exception
// to be thrown, let source be null.
if (auto result = document->document_element()->serialize_fragment(Web::DOMParsing::RequireWellFormed::Yes, Web::DOM::FragmentSerializationMode::Outer); !result.is_error())
if (auto result = document->document_element()->serialize_fragment(Web::HTML::RequireWellFormed::Yes, Web::DOM::FragmentSerializationMode::Outer); !result.is_error())
source = result.release_value();
// 4. Let source be the result of serializing to string session's current browsing context's active document,
// if source is null.
if (!source.has_value())
source = MUST(document->serialize_fragment(Web::DOMParsing::RequireWellFormed::No));
source = MUST(document->serialize_fragment(Web::HTML::RequireWellFormed::No));
// 5. Return success with data source.
async_driver_execution_complete({ source.release_value() });