diff --git a/src/web/web-base/defs/namespaces.inc b/src/web/web-base/defs/namespaces.inc new file mode 100644 index 00000000000..1281719ee60 --- /dev/null +++ b/src/web/web-base/defs/namespaces.inc @@ -0,0 +1,6 @@ +NAMESPACE(HTML, "http://www.w3.org/1999/xhtml") +NAMESPACE(MathML, "http://www.w3.org/1998/Math/MathML") +NAMESPACE(SVG, "http://www.w3.org/2000/svg") +NAMESPACE(XLink, "http://www.w3.org/1999/xlink") +NAMESPACE(XML, "http://www.w3.org/XML/1998/namespace") +NAMESPACE(XMLNS, "http://www.w3.org/2000/xmlns/") diff --git a/src/web/web-base/namespaces.h b/src/web/web-base/namespaces.h new file mode 100644 index 00000000000..c6091a7bf3f --- /dev/null +++ b/src/web/web-base/namespaces.h @@ -0,0 +1,11 @@ +#pragma once + +namespace Web { + +enum struct Namespace { +#define NAMESPACE(IDENT, _) IDENT, +#include "defs/namespaces.inc" +#undef NAMESPACE +}; + +} // namespace Web