Кирилл Жумарин
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
lexborisov
cba0c21ad1
Potential loss of the pointer on systems other than x86, x86_64 (Misaligned Integer Pointer)
2017-09-25 13:57:04 +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
c94f7ed117
Fixed for problem with infinity loop in function myencoding_prescan_stream_to_determine_encoding
2017-08-13 15:52:23 +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
84a67afa9d
Fix for encoding name index https://github.com/lexborisov/myhtml/issues/106
2017-05-21 15:25:31 +03:00
lexborisov
29cd7e1775
Fix for creating a spinlock without support spinlock https://github.com/lexborisov/myhtml/issues/103
2017-05-19 18:47:17 +03:00
lexborisov
2960726738
Added new rule for make (make modules)
2017-03-20 21:57:29 +03:00