/* * Copyright (c) 2026, Aliaksandr Kalenik * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Web::HTML { // https://html.spec.whatwg.org/multipage/parsing.html#speculative-mock-element struct SpeculativeMockElement { // local name FlyString local_name; // attribute list Vector attribute_list; // FIXME: namespace and children — populate when speculative tree-building is implemented. Optional attribute(FlyString const& name) const; }; // https://html.spec.whatwg.org/multipage/parsing.html#create-a-speculative-mock-element SpeculativeMockElement create_a_speculative_mock_element(FlyString tag_name, Vector attributes); }