From a59fec42e72db03e95bdb44ed5cf9af6a8335f44 Mon Sep 17 00:00:00 2001 From: iska Date: Sat, 8 Nov 2014 02:08:42 +0100 Subject: [PATCH] Add enum for HTML Namespaces --- HTMLKit.xcodeproj/project.pbxproj | 2 ++ HTMLKit/HTMLNamespaces.h | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 HTMLKit/HTMLNamespaces.h diff --git a/HTMLKit.xcodeproj/project.pbxproj b/HTMLKit.xcodeproj/project.pbxproj index 4e23cb1..869af18 100644 --- a/HTMLKit.xcodeproj/project.pbxproj +++ b/HTMLKit.xcodeproj/project.pbxproj @@ -131,6 +131,7 @@ 6279F87119E17DC700F12EE5 /* HTMLParserInsertionModes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HTMLParserInsertionModes.h; sourceTree = ""; }; 6279F87219E1808D00F12EE5 /* HTMLElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLElement.h; sourceTree = ""; }; 6279F87319E1808D00F12EE5 /* HTMLElement.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HTMLElement.m; sourceTree = ""; }; + 628B7CE61A080E1000602C87 /* HTMLNamespaces.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = HTMLNamespaces.h; sourceTree = ""; }; 62AE593319F97D880043F069 /* HTMLParseErrorToken.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLParseErrorToken.h; sourceTree = ""; }; 62AE593419F97D880043F069 /* HTMLParseErrorToken.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HTMLParseErrorToken.m; sourceTree = ""; }; 62AE593819F97E1C0043F069 /* HTMLDOCTYPEToken.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLDOCTYPEToken.h; sourceTree = ""; }; @@ -240,6 +241,7 @@ 62AE593219F97CCA0043F069 /* Tokenizing */, 62F873E919E088C90062683C /* HTMLParser.h */, 62F873EA19E088C90062683C /* HTMLParser.m */, + 628B7CE61A080E1000602C87 /* HTMLNamespaces.h */, 6279F87119E17DC700F12EE5 /* HTMLParserInsertionModes.h */, 6279F87219E1808D00F12EE5 /* HTMLElement.h */, 6279F87319E1808D00F12EE5 /* HTMLElement.m */, diff --git a/HTMLKit/HTMLNamespaces.h b/HTMLKit/HTMLNamespaces.h new file mode 100644 index 0000000..1c37454 --- /dev/null +++ b/HTMLKit/HTMLNamespaces.h @@ -0,0 +1,17 @@ +// +// HTMLNamespaces.h +// HTMLKit +// +// Created by Iska on 03/11/14. +// Copyright (c) 2014 BrainCookie. All rights reserved. +// + +typedef NS_ENUM(NSInteger, HTMLNamespace) +{ + HTMLNamespaceHTML, + HTMLNamespaceMathML, + HTMLNamespaceSVG, + HTMLNamespaceXLink, + HTMLNamespaceXML, + HTMLNamespaceXMLNS, +};