1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-01 03:36:26 -04:00

[mujs] document.c

This commit is contained in:
Witold Filipczyk 2023-04-16 16:08:42 +02:00
parent 6d04ca6869
commit 27bd4a529b
6 changed files with 1536 additions and 3 deletions

View File

@ -1,6 +1,6 @@
top_builddir=../../../..
include $(top_builddir)/Makefile.config
OBJS = attr.o attributes.o collection.o console.o form.o forms.o history.o implementation.o input.o keyboard.o localstorage.o location.o mapa.obj message.o navigator.o nodelist.o screen.o unibar.o window.o xhr.o
OBJS = attr.o attributes.o collection.o console.o document.o element.o form.o forms.o history.o implementation.o input.o keyboard.o localstorage.o location.o mapa.obj message.o navigator.o nodelist.o screen.o unibar.o window.o xhr.o
include $(top_srcdir)/Makefile.lib

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,2 @@
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'form.c', 'forms.c', 'history.c', 'implementation.c', 'input.c', 'keyboard.c',
srcs += files('attr.c', 'attributes.c', 'collection.c', 'console.c', 'document.c', 'element.c', 'form.c', 'forms.c', 'history.c', 'implementation.c', 'input.c', 'keyboard.c',
'localstorage.c', 'location.c', 'mapa.cpp', 'message.c', 'navigator.c', 'nodelist.c', 'screen.c', 'unibar.c', 'window.c', 'xhr.c')

View File

@ -1035,7 +1035,7 @@ js_document_createComment(JSContext *ctx, JSValueConst this_val, int argc, JSVal
struct document *document;
document = doc_view->document;
dom_document *doc = (dom_document *)document->dom;
// TODO
if (!doc) {
return JS_NULL;
}

View File

@ -61,6 +61,8 @@
#include <map>
#include <iostream>
#ifndef CONFIG_LIBDOM
static xmlpp::Document emptyDoc;
static void mjs_push_doctype(js_State *J, void *node);
@ -1534,3 +1536,4 @@ mjs_push_document(js_State *J, void *doc)
mjs_document_init(J);
js_newuserdata(J, "document", doc, NULL);
}
#endif

View File

@ -61,6 +61,8 @@
#include <map>
#include <string>
#ifndef CONFIG_LIBDOM
struct listener {
LIST_HEAD(struct listener);
char *typ;
@ -1876,3 +1878,4 @@ check_element_event(void *elem, const char *event_name, struct term_event *ev)
}
check_for_rerender(interpreter, event_name);
}
#endif