1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

LibWeb: Add Web::XLink::AttributeNames

As defined by the XLink spec.
This commit is contained in:
Shannon Booth 2023-10-01 14:59:51 +13:00 committed by Sam Atkins
parent e5d45eeeb1
commit c4efc0a5aa
4 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,32 @@
/*
* Copyright (c) 2023, Shannon Booth <shannon@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Error.h>
#include <AK/FlyString.h>
namespace Web::XLink::AttributeNames {
#define ENUMERATE_XLINK_ATTRIBUTES(E) \
E(type) \
E(href) \
E(role) \
E(arcrole) \
E(title) \
E(show) \
E(actuate) \
E(label) \
E(from) \
E(to)
#define __ENUMERATE_XLINK_ATTRIBUTE(name) extern FlyString name;
ENUMERATE_XLINK_ATTRIBUTES(__ENUMERATE_XLINK_ATTRIBUTE)
#undef __ENUMERATE_XLINK_ATTRIBUTE
void initialize_strings();
}