Add initial implementation for "appropriate place for inserting a node"

https://html.spec.whatwg.org/multipage/syntax.html#creating-and-inserting-nodes
This commit is contained in:
iska
2015-02-22 01:46:13 +01:00
parent 3915487ca7
commit 4e3c758f8c
5 changed files with 86 additions and 7 deletions
+9 -1
View File
@@ -29,7 +29,9 @@
MODE_ENTRY( HTMLInsertionModeInFrameset, ) \
MODE_ENTRY( HTMLInsertionModeAfterFrameset, ) \
MODE_ENTRY( HTMLInsertionModeAfterAfterBody, ) \
MODE_ENTRY( HTMLInsertionModeAfterAfterFrameset, )
MODE_ENTRY( HTMLInsertionModeAfterAfterFrameset, ) \
MODE_ENTRY( HTMLInsertionModeCurrentTemplate, ) \
MODE_ENTRY( HTMLInsertionModesCount, )
typedef NS_ENUM(NSUInteger, HTMLInsertionMode)
{
@@ -37,3 +39,9 @@ typedef NS_ENUM(NSUInteger, HTMLInsertionMode)
INSERTION_MODES
#undef MODE_ENTRY
};
static NSString * HTMLInsertionModesTable[] = {
#define MODE_ENTRY( name, value ) [name] = @#name,
INSERTION_MODES
#undef MODE_ENTRY
};