Kirill Zhumarin
dd79421239
fix infinitie loop (revert my previous broken PR)
2019-01-13 23:28:02 +02:00
Alexander
0f1531a27f
Merge pull request #61 from Azq2/patch-14
...
Fix segfaults in ALL_IN_ONE mode
2019-01-13 19:53:50 +03:00
Azq2
68d0adbe4d
sync modest from myhtml
2019-01-12 18:38:11 +02:00
Kirill Zhumarin
1dedb64439
Fix segfaults in ALL_IN_ONE mode
2019-01-09 17:22:52 +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
Кирилл Жумарин
b5c2eba12d
fix extra space
2018-05-26 15:43:25 +03:00
Кирилл Жумарин
92c465f81a
fix specificity for pseudo elements
...
Fix specificity for pseudo-elements with one semi-colon, for example :after
2018-05-26 15:42:51 +03:00
Кирилл Жумарин
91f37b6365
fix specificity for .class
2018-05-26 15:32:52 +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
Кирилл Жумарин
d22b12b000
fix segfault myhtml_tag_get_by_id
...
If pass some big tag id value to myhtml_tag_get_by_id, then mcsimple_get_by_absolute_position access to uninitialized memory area.
Now checks calculated list index by mcsimple->list_pos_length_used value to fix this.
2018-05-20 18:30:50 +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
frank
412ba67abc
Cleaned formatting
2018-03-26 15:21:14 +02:00
frank
d650d013af
Removed memory leak in case mycore_realloc failes
2018-03-26 15:04:53 +02:00
frank
76b1839599
Added failed allocation check
2018-03-26 14:48:44 +02:00
frank
2f65f50f5f
Removed concat function; Refactored 'modest_finder_selector_sub_type_pseudo_class_function_contains' to use mycore_malloc, mycore_realloc and snprintf
2018-03-26 14:25:58 +02:00
frank
bee75d5d36
Added parser for 'contains'
2018-03-26 14:24:12 +02:00
frank
8dc0c4c2b5
Cleanup
2018-03-26 14:22:48 +02:00
frank
11bddf6833
Minor change
2018-03-24 22:27:52 +01:00
frank
a3040f2b7a
Removed all dev printing
2018-03-24 21:44:16 +01:00
frank
b4e4e453fb
Some cleanup...
2018-03-24 21:37:24 +01:00
frank
bec0bc87c6
Implemented modest_finder_selector_sub_type_pseudo_class_function_contains(); Test pseudo_class_contains succeeds
2018-03-24 21:31:05 +01:00
frank
58836153d9
modest_finder_selector_sub_type_pseudo_class_function_contains in progress...
2018-03-24 20:04:46 +01:00
frank
aed3e3d105
Prepared for serialization...
2018-03-24 13:13:44 +01:00
frank
bfc525605c
In progress
2018-03-21 12:37:46 +01:00
frank
3ef1c283cd
Removed some debug printing
2018-03-21 12:11:14 +01:00
frank
6b7c2c4c5e
Generated new 'mycss_selectors_function_begin_map_index' with 'perl utils/MyCSS/functions.pl'
2018-03-21 12:04:09 +01:00
frank
6322e2c276
Added more debugging prints
2018-03-21 10:07:28 +01:00
frank
f5e7360b7f
In Progress...
2018-03-08 11:48:12 +01:00
frank
bfdc22b9c0
Added missing functions
2018-03-03 22:06:59 +01:00
frank
d6e9727aab
Added _contains declaration
2018-02-27 23:04:11 +01:00
frank
97fc234a68
Marked function as TODO and added default return
2018-02-27 23:01:23 +01:00
frank
ee1578eb24
Added new pseudo-clas type 'contains'; Added placeholder function for 'contains' type
2018-02-27 22:56:50 +01:00
lexborisov
a190b8f493
Fix for myhtml module https://github.com/lexborisov/myhtml/issues/124
2018-01-03 17:29:11 +03:00