mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[quickjs] document.write does not work
This commit is contained in:
parent
3720694d0d
commit
92850a2aa4
@ -338,6 +338,8 @@ check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
|
|||||||
|
|
||||||
foreach(item, interpreter->writecode) {
|
foreach(item, interpreter->writecode) {
|
||||||
if (item->string.length) {
|
if (item->string.length) {
|
||||||
|
// TODO
|
||||||
|
#if 0
|
||||||
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)document->element_map;
|
std::map<int, xmlpp::Element *> *mapa = (std::map<int, xmlpp::Element *> *)document->element_map;
|
||||||
|
|
||||||
if (mapa) {
|
if (mapa) {
|
||||||
@ -370,11 +372,14 @@ check_for_rerender(struct ecmascript_interpreter *interpreter, const char* text)
|
|||||||
xmlpp::Node::remove_node(el);
|
xmlpp::Node::remove_node(el);
|
||||||
} else {
|
} else {
|
||||||
fromstart:
|
fromstart:
|
||||||
|
#endif
|
||||||
add_fragment(cached, 0, item->string.source, item->string.length);
|
add_fragment(cached, 0, item->string.source, item->string.length);
|
||||||
document->ecmascript_counter++;
|
document->ecmascript_counter++;
|
||||||
break;
|
break;
|
||||||
|
#if 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user