mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
DOM, ecmascript: Added functions for creation SpiderMonkey's objects.
This commit is contained in:
parent
7a55be295c
commit
4f68b1af47
@ -178,3 +178,15 @@ const JSClass HTMLAnchorElement_class = {
|
||||
HTMLAnchorElement_getProperty, HTMLAnchorElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_A_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct A_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLAnchorElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -24,4 +24,5 @@ struct A_struct {
|
||||
int tab_index;
|
||||
};
|
||||
|
||||
void make_A_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -151,3 +151,15 @@ const JSClass HTMLAppletElement_class = {
|
||||
HTMLAppletElement_getProperty, HTMLAppletElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_APPLET_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct APPLET_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLAppletElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,4 +23,5 @@ struct APPLET_struct {
|
||||
int vspace;
|
||||
};
|
||||
|
||||
void make_APPLET_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -131,3 +131,15 @@ const JSClass HTMLAreaElement_class = {
|
||||
HTMLAreaElement_getProperty, HTMLAreaElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_AREA_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct AREA_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLAreaElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,4 +20,5 @@ struct AREA_struct {
|
||||
unsigned int no_href:1;
|
||||
};
|
||||
|
||||
void make_AREA_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -84,3 +84,14 @@ const JSClass HTMLBRElement_class = {
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_BR_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct BR_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLBRElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct BR_struct {
|
||||
unsigned char *clear;
|
||||
};
|
||||
|
||||
void make_BR_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -90,3 +90,15 @@ const JSClass HTMLBaseElement_class = {
|
||||
HTMLBaseElement_getProperty, HTMLBaseElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_BASE_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct BASE_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLBaseElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,5 @@ struct BASE_struct {
|
||||
unsigned char *target;
|
||||
};
|
||||
|
||||
void make_BASE_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -96,3 +96,15 @@ const JSClass HTMLBaseFontElement_class = {
|
||||
HTMLBaseFontElement_getProperty, HTMLBaseFontElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_BASEFONT_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct BASEFONT_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLBaseFontElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,5 @@ struct BASEFONT_struct {
|
||||
int size;
|
||||
};
|
||||
|
||||
void make_BASEFONT_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -118,3 +118,15 @@ const JSClass HTMLBodyElement_class = {
|
||||
HTMLBodyElement_getProperty, HTMLBodyElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_BODY_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct BODY_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLBodyElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,4 +18,5 @@ struct BODY_struct {
|
||||
unsigned char *vlink;
|
||||
};
|
||||
|
||||
void make_BODY_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -119,3 +119,15 @@ const JSClass HTMLButtonElement_class = {
|
||||
HTMLButtonElement_getProperty, HTMLButtonElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_BUTTON_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct BUTTON_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLButtonElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,4 +19,5 @@ struct BUTTON_struct {
|
||||
unsigned char disabled:1;
|
||||
};
|
||||
|
||||
void make_BUTTON_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLDListElement_class = {
|
||||
HTMLDListElement_getProperty, HTMLDListElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_DL_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct DL_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLDListElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct DL_struct {
|
||||
unsigned int compact:1;
|
||||
};
|
||||
|
||||
void make_DL_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLDirectoryElement_class = {
|
||||
HTMLDirectoryElement_getProperty, HTMLDirectoryElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_DIR_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct DIR_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLDirectoryElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct DIR_struct {
|
||||
unsigned int compact:1;
|
||||
};
|
||||
|
||||
void make_DIR_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLDivElement_class = {
|
||||
HTMLDivElement_getProperty, HTMLDivElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_DIV_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct DIV_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLDivElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct DIV_struct {
|
||||
unsigned char *align;
|
||||
};
|
||||
|
||||
void make_DIV_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -18,4 +18,7 @@ struct HTMLElement_struct {
|
||||
unsigned char *class_name;
|
||||
};
|
||||
|
||||
struct html_objects { /* FIXME: Better name for this type. */
|
||||
JSObject *HTMLElement_object;
|
||||
};
|
||||
#endif
|
||||
|
@ -97,3 +97,15 @@ const JSClass HTMLFontElement_class = {
|
||||
HTMLFontElement_getProperty, HTMLFontElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_FONT_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct FONT_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLFontElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,5 @@ struct FONT_struct {
|
||||
unsigned char *size;
|
||||
};
|
||||
|
||||
void make_FONT_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -150,3 +150,14 @@ const JSClass HTMLFormElement_class = {
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_FORM_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct FORM_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLFormElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,4 +20,5 @@ struct FORM_struct {
|
||||
int length;
|
||||
};
|
||||
|
||||
void make_FORM_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -137,3 +137,15 @@ const JSClass HTMLFrameElement_class = {
|
||||
HTMLFrameElement_getProperty, HTMLFrameElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_FRAME_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct FRAME_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLFrameElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,4 +21,5 @@ struct FRAME_struct {
|
||||
unsigned int no_resize:1;
|
||||
};
|
||||
|
||||
void make_FRAME_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -90,3 +90,15 @@ const JSClass HTMLFrameSetElement_class = {
|
||||
HTMLFrameSetElement_getProperty, HTMLFrameSetElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_FRAMESET_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct FRAMESET_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLFrameSetElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,5 @@ struct FRAMESET_struct {
|
||||
unsigned char *rows;
|
||||
};
|
||||
|
||||
void make_FRAMESET_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -104,3 +104,15 @@ const JSClass HTMLHRElement_class = {
|
||||
HTMLHRElement_getProperty, HTMLHRElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_HR_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct HR_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLHRElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,4 +16,5 @@ struct HR_struct {
|
||||
unsigned int no_shade:1;
|
||||
};
|
||||
|
||||
void make_HR_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLHeadElement_class = {
|
||||
HTMLHeadElement_getProperty, HTMLHeadElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_HEAD_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct HEAD_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLHeadElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct HEAD_struct {
|
||||
unsigned char *profile;
|
||||
};
|
||||
|
||||
void make_HEAD_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLHeadingElement_class = {
|
||||
HTMLHeadingElement_getProperty, HTMLHeadingElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_H1_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct H1_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLHeadingElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct H1_struct {
|
||||
unsigned char *align;
|
||||
};
|
||||
|
||||
void make_H1_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLHtmlElement_class = {
|
||||
HTMLHtmlElement_getProperty, HTMLHtmlElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_HTML_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct HTML_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLHtmlElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct HTML_struct {
|
||||
unsigned char *version;
|
||||
};
|
||||
|
||||
void make_HTML_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -151,3 +151,15 @@ const JSClass HTMLIFrameElement_class = {
|
||||
HTMLIFrameElement_getProperty, HTMLIFrameElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_IFRAME_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct IFRAME_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLIFrameElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,4 +23,5 @@ struct IFRAME_struct {
|
||||
unsigned char *content_document; /* FIXME: proper type */
|
||||
};
|
||||
|
||||
void make_IFRAME_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -156,3 +156,15 @@ const JSClass HTMLImageElement_class = {
|
||||
HTMLImageElement_getProperty, HTMLImageElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_IMAGE_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct IMAGE_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLImageElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -24,4 +24,5 @@ struct IMAGE_struct {
|
||||
unsigned int is_map:1;
|
||||
};
|
||||
|
||||
void make_IMAGE_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -233,3 +233,15 @@ const JSClass HTMLInputElement_class = {
|
||||
HTMLInputElement_getProperty, HTMLInputElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_INPUT_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct INPUT_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLInputElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,4 +30,5 @@ struct INPUT_struct {
|
||||
unsigned int read_only:1;
|
||||
};
|
||||
|
||||
void make_INPUT_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -88,3 +88,15 @@ const JSClass HTMLIsIndexElement_class = {
|
||||
HTMLIsIndexElement_getProperty, HTMLIsIndexElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_ISINDEX_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct ISINDEX_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLIsIndexElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,5 @@ struct ISINDEX_struct {
|
||||
unsigned char *prompt;
|
||||
};
|
||||
|
||||
void make_ISINDEX_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -89,3 +89,15 @@ const JSClass HTMLLIElement_class = {
|
||||
HTMLLIElement_getProperty, HTMLLIElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_LI_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct LI_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLLIElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,5 @@ struct LI_struct {
|
||||
int value;
|
||||
};
|
||||
|
||||
void make_LI_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -95,3 +95,15 @@ const JSClass HTMLLabelElement_class = {
|
||||
HTMLLabelElement_getProperty, HTMLLabelElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_LABEL_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct LABEL_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLLabelElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,5 @@ struct LABEL_struct {
|
||||
unsigned char *html_for;
|
||||
};
|
||||
|
||||
void make_LABEL_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -95,3 +95,15 @@ const JSClass HTMLLegendElement_class = {
|
||||
HTMLLegendElement_getProperty, HTMLLegendElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_LEGEND_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct LEGEND_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLLegendElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,5 @@ struct LEGEND_struct {
|
||||
unsigned char *align;
|
||||
};
|
||||
|
||||
void make_LEGEND_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -139,3 +139,15 @@ const JSClass HTMLLinkElement_class = {
|
||||
HTMLLinkElement_getProperty, HTMLLinkElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_LINK_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct LINK_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLLinkElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21,4 +21,5 @@ struct LINK_struct {
|
||||
unsigned int disabled:1;
|
||||
};
|
||||
|
||||
void make_LINK_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -88,3 +88,15 @@ const JSClass HTMLMapElement_class = {
|
||||
HTMLMapElement_getProperty, HTMLMapElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_MAP_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct MAP_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLMapElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,5 @@ struct MAP_struct {
|
||||
unsigned char *name;
|
||||
};
|
||||
|
||||
void make_MAP_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLMenuElement_class = {
|
||||
HTMLMenuElement_getProperty, HTMLMenuElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_MENU_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct MENU_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLMenuElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct MENU_struct {
|
||||
unsigned int compact:1;
|
||||
};
|
||||
|
||||
void make_MENU_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -104,3 +104,15 @@ const JSClass HTMLMetaElement_class = {
|
||||
HTMLMetaElement_getProperty, HTMLMetaElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_META_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct META_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLMetaElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,4 +16,5 @@ struct META_struct {
|
||||
unsigned char *scheme;
|
||||
};
|
||||
|
||||
void make_META_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -90,3 +90,15 @@ const JSClass HTMLModElement_class = {
|
||||
HTMLModElement_getProperty, HTMLModElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_MOD_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct MOD_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLModElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,5 @@ struct MOD_struct {
|
||||
unsigned char *date_time;
|
||||
};
|
||||
|
||||
void make_MOD_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -96,3 +96,15 @@ const JSClass HTMLOListElement_class = {
|
||||
HTMLOListElement_getProperty, HTMLOListElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_OL_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct OL_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLOListElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,5 @@ struct OL_struct {
|
||||
unsigned int compact:1;
|
||||
};
|
||||
|
||||
void make_OL_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -201,3 +201,15 @@ const JSClass HTMLObjectElement_class = {
|
||||
HTMLObjectElement_getProperty, HTMLObjectElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_OBJECT_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct OBJECT_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLObjectElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -31,4 +31,5 @@ struct OBJECT_struct {
|
||||
unsigned int declare:1;
|
||||
};
|
||||
|
||||
void make_OBJECT_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -90,3 +90,15 @@ const JSClass HTMLOptGroupElement_class = {
|
||||
HTMLOptGroupElement_getProperty, HTMLOptGroupElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_OPTGROUP_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct OPTGROUP_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLOptGroupElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,4 +14,5 @@ struct OPTGROUP_struct {
|
||||
unsigned int disabled:1;
|
||||
};
|
||||
|
||||
void make_OPTGROUP_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -124,3 +124,15 @@ const JSClass HTMLOptionElement_class = {
|
||||
HTMLOptionElement_getProperty, HTMLOptionElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_OPTION_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct OPTION_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLOptionElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,4 +20,5 @@ struct OPTION_struct {
|
||||
unsigned int selected:1;
|
||||
};
|
||||
|
||||
void make_OPTION_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLParagraphElement_class = {
|
||||
HTMLParagraphElement_getProperty, HTMLParagraphElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_P_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct P_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLParagraphElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct P_struct {
|
||||
unsigned char *align;
|
||||
};
|
||||
|
||||
void make_P_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -104,3 +104,15 @@ const JSClass HTMLParamElement_class = {
|
||||
HTMLParamElement_getProperty, HTMLParamElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_PARAM_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct PARAM_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLParamElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -16,4 +16,5 @@ struct PARAM_struct {
|
||||
unsigned char *value_type;
|
||||
};
|
||||
|
||||
void make_PARAM_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -82,3 +82,15 @@ const JSClass HTMLPreElement_class = {
|
||||
HTMLPreElement_getProperty, HTMLPreElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_PRE_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct PRE_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLPreElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct PRE_struct {
|
||||
int width;
|
||||
};
|
||||
|
||||
void make_PRE_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLQuoteElement_class = {
|
||||
HTMLQuoteElement_getProperty, HTMLQuoteElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_QUOTE_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct QUOTE_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLQuoteElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct QUOTE_struct {
|
||||
unsigned char *cite;
|
||||
};
|
||||
|
||||
void make_QUOTE_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -125,3 +125,15 @@ const JSClass HTMLScriptElement_class = {
|
||||
HTMLScriptElement_getProperty, HTMLScriptElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_SCRIPT_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct SCRIPT_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLScriptElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,4 +19,5 @@ struct SCRIPT_struct {
|
||||
unsigned int defer:1;
|
||||
};
|
||||
|
||||
void make_SCRIPT_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -178,3 +178,15 @@ const JSClass HTMLSelectElement_class = {
|
||||
HTMLSelectElement_getProperty, HTMLSelectElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_SELECT_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct SELECT_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLSelectElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,4 +23,5 @@ struct SELECT_struct {
|
||||
unsigned int multiple:1;
|
||||
};
|
||||
|
||||
void make_SELECT_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -97,3 +97,15 @@ const JSClass HTMLStyleElement_class = {
|
||||
HTMLStyleElement_getProperty, HTMLStyleElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_STYLE_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct STYLE_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLStyleElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,4 +15,5 @@ struct STYLE_struct {
|
||||
unsigned int disabled:1;
|
||||
};
|
||||
|
||||
void make_STYLE_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -83,3 +83,15 @@ const JSClass HTMLTableCaptionElement_class = {
|
||||
HTMLTableCaptionElement_getProperty, HTMLTableCaptionElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_CAPTION_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct CAPTION_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLTableCaptionElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,4 +13,5 @@ struct CAPTION_struct {
|
||||
unsigned char *align;
|
||||
};
|
||||
|
||||
void make_CAPTION_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -176,3 +176,15 @@ const JSClass HTMLTableCellElement_class = {
|
||||
HTMLTableCellElement_getProperty, HTMLTableCellElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_TD_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct TD_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLTableCellElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -27,4 +27,5 @@ struct TD_struct {
|
||||
unsigned int no_wrap:1;
|
||||
};
|
||||
|
||||
void make_TD_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -117,3 +117,15 @@ const JSClass HTMLTableColElement_class = {
|
||||
HTMLTableColElement_getProperty, HTMLTableColElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_COL_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct COL_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLTableColElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,4 +18,5 @@ struct COL_struct {
|
||||
int span;
|
||||
};
|
||||
|
||||
void make_COL_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -248,3 +248,15 @@ const JSClass HTMLTableElement_class = {
|
||||
HTMLTableElement_getProperty, HTMLTableElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_TABLE_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct TABLE_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLTableElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -26,4 +26,5 @@ struct TABLE_struct {
|
||||
unsigned char *width;
|
||||
};
|
||||
|
||||
void make_TABLE_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -142,3 +142,15 @@ const JSClass HTMLTableRowElement_class = {
|
||||
HTMLTableRowElement_getProperty, HTMLTableRowElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_TR_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct TR_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLTableRowElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -20,4 +20,5 @@ struct TR_struct {
|
||||
int section_row_index;
|
||||
};
|
||||
|
||||
void make_TR_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -100,4 +100,3 @@ const JSClass HTMLTableSectionElement_class = {
|
||||
HTMLTableSectionElement_getProperty, HTMLTableSectionElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
|
@ -172,3 +172,14 @@ const JSClass HTMLTextAreaElement_class = {
|
||||
HTMLTextAreaElement_getProperty, HTMLTextAreaElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_TEXTAREA_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct TEXTAREA_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLTextAreaElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
@ -23,4 +23,5 @@ struct TEXTAREA_struct {
|
||||
unsigned int read_only:1;
|
||||
};
|
||||
|
||||
void make_TEXTAREA_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
@ -79,3 +79,14 @@ const JSClass HTMLTitleElement_class = {
|
||||
HTMLTitleElement_getProperty, HTMLTitleElement_setProperty,
|
||||
JS_EnumerateStub, JS_ResolveStub, JS_ConvertStub, Node_finalize
|
||||
};
|
||||
|
||||
void
|
||||
make_TITLE_object(JSContext *ctx, struct dom_node *node)
|
||||
{
|
||||
struct html_objects *o = JS_GetContextPrivate(ctx);
|
||||
|
||||
node->data.element.html_data = mem_calloc(1, sizeof(struct TITLE_struct));
|
||||
if (node->data.element.html_data) {
|
||||
node->ecmascript_obj = JS_NewObject(ctx, (JSClass *)&HTMLTitleElement_class, o->HTMLElement_object, NULL);
|
||||
}
|
||||
}
|
||||
|
@ -13,4 +13,5 @@ struct TITLE_struct {
|
||||
unsigned char *text;
|
||||
};
|
||||
|
||||
void make_TITLE_object(JSContext *ctx, struct dom_node *node);
|
||||
#endif
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user