Alexander
Alexander
I'm trying to understand the problem. But I do not understand. Actually, the specification requires this. Try to see how this example is handled in a modern browser.
I found bug. We need pos.len = 0 (for clone element), but now it contains a garbage. Need to fix it.
It seems that no, today I will try to deal with this. It is necessary to understand at what point the cloned nodes have garbage in the position values. Position...
@EmielBruijntjes I understood the task, but it will take time. In `enum myhtml_tree_node_flags` we need to create, some like a `MyHTML_TREE_NODE_CLONE`, `MyHTML_TREE_NODE_MOVED`. For use: ```C if (node->type & (MyHTML_TREE_NODE_CLONE|MyHTML_TREE_NODE_MOVED)) {...
Sorry, but in the current project, I can not do anything about it. Just somehow mark the cloned elements. But I would not want to spend that time.
@Randshot Yea, ```HTML Link Name ``` created tree ```HTML -text: Link Name ``` for get text from `````` node use ```myhtml_node_child``` and ```myhtml_node_text ``` or use collection ```C myhtml_collection_t *nodes...
Thanks! After done you send me link for your wrapper?
@Randshot You do not need to store data in class. They may become obsolete, this can later cause confusion. I think it should look like this, for example: ```C++ node->next();...
Hi, You can show me HTML pages (html code)?
Work fine. Code: ```C myhtml_parse(tree, MyENCODING_UTF_8, res.html, res.size); myhtml_collection_t *collection = myhtml_get_nodes_by_tag_id(tree, NULL, MyHTML_TAG_SCRIPT, NULL); for (size_t i = 0; i < collection->length; i++) { mycore_string_raw_t str = {0}; if(collection->list[i]->child...