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:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user