Commit Graph

72 Commits

Author SHA1 Message Date
Alexander
393338d994 Update includes. 2020-08-09 20:42:24 +03:00
Alexander
c0665aa477 HTML: added clone/deep clone functions for nodes.
This related https://github.com/rushter/selectolax/issues/27 issue on GitHub.
2020-08-09 20:05:30 +03:00
Alexander
a7ce974123 Fixed myhtml_token_node_attribute_last() for return last attribute. 2020-01-08 16:40:18 +03:00
Azq2
68d0adbe4d sync modest from myhtml 2019-01-12 18:38:11 +02:00
Alexander Borisov
d021b90751 Fixed parsing problem for PRE element with CDATA in thread and single mode. 2018-09-06 20:08:30 +03:00
Alexander Borisov
25fef09c5f Fixed the problem of parsing chunks when there was a script tag. 2018-08-18 21:49:56 +03:00
Alexander
b8b6ca6861
Merge pull request #57 from Azq2/patch-13
fix charef parsing
2018-08-17 11:08:16 +03:00
Кирилл Жумарин
0feee0101d
fix charef parsing
fix bugs like this:
&redirect => ®direct
2018-06-16 14:37:28 +03:00
Кирилл Жумарин
7725ed2441
fix serialization segfault 2018-06-02 11:56:41 +03:00
Кирилл Жумарин
307b9630e0
fix doctype serialization by spec 2018-06-02 11:54:26 +03:00
Кирилл Жумарин
aca935f07c
Replace strcasecmp to mycore_strcasecmp 2018-06-02 11:15:22 +03:00
Кирилл Жумарин
6224a68f86
fix doctype serialization by spec
Implement missing serialization of:
- PUBLIC/SYSTEM
- systemId
-publicId
2018-06-02 11:12:15 +03:00
Кирилл Жумарин
2d8e6a3444
fix doctype serialization
whitespace after <!DOCTYPE required by spec
2018-06-02 10:05:23 +03:00
Кирилл Жумарин
d41f529335
fix serialization segfault
Fix segfault if doctype hasn't attribute
2018-06-02 01:10:26 +03:00
Alexander
a3ef4e9439
Merge pull request #51 from Azq2/patch-8
fix serialization
2018-05-22 13:18:17 +03:00
Кирилл Жумарин
0e6700cf55
sync myhtml lexborisov/myhtml/issues/139 2018-05-22 13:07:03 +03:00
Кирилл Жумарин
33dd71fe8e
fix serialization
Make serialization by spec:

"If current node is an area, base, basefont, bgsound, br, col, embed, frame, hr, img, input, link, meta, param, spacer, or wbr element, then continue on to the next child node at this point."

https://html.spec.whatwg.org/multipage/parsing.html#serialising-html-fragments
2018-05-22 13:02:37 +03:00
Кирилл Жумарин
10eaefa0de
fix nodes_by_attribute_value_recursion_end
myhtml_get_nodes_by_attribute_value_recursion_end uses invalid string offset
2018-05-20 22:17:43 +03:00
Кирилл Жумарин
27cd592b9b
Fix code formatting 2018-05-20 19:50:52 +03:00
Кирилл Жумарин
a59a78e8ea
fix segfault in myhtml_get_nodes_by_name_in_scope
Fix segfault if tag name not exists.
2018-05-20 19:39:31 +03:00
Кирилл Жумарин
c2025f620c
Add missing MyHTML_TOKEN_TYPE_DONE
If node has node->token == NULL and we call myhtml_attribute_add/myhtml_node_text_set/myhtml_node_text_set_with_charef - being created new node token, but without MyHTML_TOKEN_TYPE_DONE
Because of this myhtml_token_node_wait_for_done wait infinity.
2018-05-15 01:20:24 +03:00
Кирилл Жумарин
b5b4dcac54
fix copy node mchar
Implement missing copying mchar in myhtml_token_node_clone
2018-05-13 15:45:37 +03:00
Кирилл Жумарин
eb808777ba
Fix segfault lexborisov/myhtml#138
If node->token is NULL, then new_node->token also is NULL
2018-05-13 01:57:57 +03:00
Кирилл Жумарин
a6bb9b3232
Fix segfault
Fix segfault in myhtml_tree_node_clone if node->token is NULL
2018-05-13 01:27:53 +03:00
lexborisov
a190b8f493 Fix for myhtml module https://github.com/lexborisov/myhtml/issues/124 2018-01-03 17:29:11 +03:00
lexborisov
fc1f5d7ce7 Sync myhtml module 2017-09-07 11:30:53 +03:00
lexborisov
140a41a539 Sync with MyHTML 2017-08-31 18:53:50 +03:00
Alexey Voznyuk
3ae4dfc0aa typo fix: "pasition" -> "position" 2017-08-27 02:03:54 +03:00
lexborisov
7e2ed5fb1a Version up for myhtml 2017-06-16 17:24:40 +03:00
lexborisov
82056de77f Sync myhtml with last version 2017-06-16 17:22:46 +03:00
lexborisov
2960726738 Added new rule for make (make modules) 2017-03-20 21:57:29 +03:00
lexborisov
66d5d951df Make clone for Linux and Mac OS X 2017-03-16 23:15:55 +03:00
lexborisov
1eb9ddae92 Added define *_VERSION_STRING for all modules 2017-03-14 23:55:52 +03:00
lexborisov
455a853cf2 Changed (C) 2017-03-14 23:44:48 +03:00
lexborisov
c476946ddd Fix for https://github.com/lexborisov/Modest/issues/24 2017-03-14 11:17:17 +03:00
lexborisov
3228a2df9e Fixed problem with thread infiniti wait 2017-03-13 23:49:49 +03:00
lexborisov
4d34d0848e Added -pedantic 2017-03-13 17:52:50 +03:00
lexborisov
cf3f280fc6 Fixes for https://github.com/lexborisov/Modest/issues/16 2017-03-12 21:04:09 +03:00
lexborisov
e215019c09 Fix problem with Windows Threads 2017-03-12 18:05:22 +03:00
lexborisov
de800aeeb8 Windows 2017-03-11 22:53:26 +03:00
lexborisov
f0ecc407e2 Remove all fprintf and printf 2017-03-11 12:23:24 +03:00
lexborisov
4c7b823274 Changes for io functions 2017-03-10 15:11:35 +03:00
lexborisov
8669462c8c Refactoring Threads and Makefile 2017-03-09 23:47:39 +03:00
lexborisov
77991b6e77 New code design. Added MyCore and MyEncoding 2017-03-03 09:20:23 +03:00
lexborisov
fa45cd70e5 URL parsing by specification https://url.spec.whatwg.org/ 2017-03-01 16:07:21 +03:00
lexborisov
c0877a7b5a Sync with myhtml 2017-02-21 22:15:47 +03:00
lexborisov
5582801024 Fixed broken mapping for convert encoding functions https://github.com/lexborisov/myhtml/issues/89 2017-02-17 22:26:20 +03:00
lexborisov
32876b578f Little changes for api 2017-02-17 14:49:33 +03:00
lexborisov
5fa9d6272b Big update. See CHANGELOG 2017-02-14 14:49:05 +03:00
lexborisov
626fef0d6a MyHTML: Sync with specification and added comments for validation parse errors 2017-01-15 21:11:19 +03:00