/* * Copyright (c) 2025, Johannes Gustafsson * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include "XPathExpression.h" #include "XPathNSResolver.h" #include "XPathResult.h" namespace Web::XPath { WebIDL::ExceptionOr> create_expression(JS::Realm& realm, String const& expression, GC::Ptr resolver); WebIDL::ExceptionOr> evaluate(JS::Realm& realm, String const& expression, DOM::Node const& context_node, GC::Ptr resolver, unsigned short type, GC::Ptr result); }