1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[spidermonkey] "Rewrite" document->dom

There is a small progress. Some items are displayed in Python's docs
searching.
This commit is contained in:
Witold Filipczyk 2024-07-06 15:24:50 +02:00
parent a6cb50e413
commit 87044f9499

View File

@ -299,6 +299,15 @@ check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
struct document *document = doc_view->document;
struct session *ses = doc_view->session;
struct cache_entry *cached = document->cached;
#ifdef CONFIG_ECMASCRIPT_SMJS
if (interpreter->document_obj) {
dom_document *doc = JS::GetMaybePtrFromReservedSlot<dom_document>(interpreter->document_obj, 0);
if (doc) {
document->dom = doc;
}
}
#endif
if (!strcmp(text, "eval")) {
struct ecmascript_string_list_item *item;