mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[mujs] interpreter->doc as doc in Image
This commit is contained in:
parent
4872ecbd52
commit
02b02c2950
@ -39,7 +39,8 @@ mjs_image_constructor(js_State *J)
|
||||
#ifdef ECMASCRIPT_DEBUG
|
||||
fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__);
|
||||
#endif
|
||||
dom_document *doc = (dom_document *)mjs_doc_getprivate(J, 0);
|
||||
struct ecmascript_interpreter *interpreter = (struct ecmascript_interpreter *)js_getcontext(J);
|
||||
dom_document *doc = (dom_document *)interpreter->doc;
|
||||
dom_element *element = NULL;
|
||||
dom_exception exc = dom_document_create_element(doc, corestring_dom_IMG, &element);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user