Кирилл Жумарин
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
578bedb548
Merge pull request #54 from Azq2/patch-11
...
fix specificity for .class
2018-05-27 00:15:33 +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
a465dea0ad
Merge pull request #53 from Azq2/patch-10
...
Link to perl5 module
2018-05-23 23:20:57 +03:00
Кирилл Жумарин
72fed08856
Link to perl5 module
...
Link to perl5 module HTML5::DOM
2018-05-23 23:09:13 +03:00
Alexander
a3ef4e9439
Merge pull request #51 from Azq2/patch-8
...
fix serialization
2018-05-22 13:18:17 +03:00
Alexander
a918f4344d
Merge pull request #52 from Azq2/patch-9
...
sync myhtml lexborisov/myhtml/issues/139
2018-05-22 13:17:59 +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
Alexander
05ce218c5f
Merge pull request #50 from Azq2/patch-7
...
fix nodes_by_attribute_value_recursion_end
2018-05-21 12:44:39 +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
Alexander
3a36d7cbfc
Merge pull request #49 from Azq2/patch-6
...
fix segfault in myhtml_get_nodes_by_name_in_scope
2018-05-20 19:54:28 +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
Alexander
7430ac7798
Merge pull request #48 from Azq2/patch-5
...
fix segfault myhtml_tag_get_by_id
2018-05-20 19:25:36 +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
Alexander
e15a4e5dd4
Merge pull request #47 from Azq2/patch-4
...
Add missing MyHTML_TOKEN_TYPE_DONE
2018-05-15 02:55: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
Alexander
653f355eb2
Merge pull request #46 from Azq2/patch-3
...
fix copy node mchar
2018-05-13 18:50:44 +03:00
Кирилл Жумарин
b5b4dcac54
fix copy node mchar
...
Implement missing copying mchar in myhtml_token_node_clone
2018-05-13 15:45:37 +03:00
Alexander
41a20da340
Merge pull request #45 from Azq2/patch-2
...
Fix segfault lexborisov/myhtml#138
2018-05-13 02:02:25 +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
Alexander
f2b9714e91
Merge pull request #44 from Azq2/patch-1
...
Fix segfault lexborisov/myhtml#138
2018-05-13 01:31:58 +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
Alexander
87d75c9585
Merge pull request #42 from f34nk/support-for-pseudo-class-contains
...
New CSS selector ":contains(text)"
2018-03-26 16:55:54 +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
f8076d98e6
Added comma separated arguments test
2018-03-26 14:34:40 +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
8b947b64db
Cleanup
2018-03-25 11:46:43 +02:00
frank
5feb533d5e
Merge branch 'master' into support-for-pseudo-class-contains
2018-03-25 10:55:31 +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
Alexander
000578ae73
Merge pull request #41 from mody/debian-fix-make-clean
...
Don't fail make clean if there is no modest.pc
2018-03-21 14:02:58 +03:00
Patrik Modesto
025462a659
Don't mix and in the target
2018-03-21 11:49:09 +01:00