1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef TRANSFRMX_URIUTILS_H
7 #define TRANSFRMX_URIUTILS_H
13 namespace mozilla::dom
{
15 } // namespace mozilla::dom
18 * A utility class for URI handling
19 * Not yet finished, only handles file URI at this point
25 * Reset the given document with the document of the source node
27 static void ResetWithSource(mozilla::dom::Document
* aNewDoc
,
28 nsINode
* aSourceNode
);
31 * Resolves the given href argument, using the given documentBase
33 * The new resolved href will be appended to the given dest String
35 static void resolveHref(const nsAString
& href
, const nsAString
& base
,