nokolexbor 0.2.4 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/ext/nokolexbor/extconf.rb +12 -6
  3. data/ext/nokolexbor/libxml/SAX2.h +4 -4
  4. data/ext/nokolexbor/libxml/chvalid.h +21 -21
  5. data/ext/nokolexbor/libxml/dict.h +13 -13
  6. data/ext/nokolexbor/libxml/globals.h +202 -202
  7. data/ext/nokolexbor/libxml/hash.h +25 -25
  8. data/ext/nokolexbor/libxml/parser.h +5 -5
  9. data/ext/nokolexbor/libxml/parserInternals.h +4 -4
  10. data/ext/nokolexbor/libxml/pattern.h +14 -14
  11. data/ext/nokolexbor/libxml/threads.h +15 -15
  12. data/ext/nokolexbor/libxml/tree.h +5 -5
  13. data/ext/nokolexbor/libxml/xmlerror.h +5 -5
  14. data/ext/nokolexbor/libxml/xmlmemory.h +16 -16
  15. data/ext/nokolexbor/libxml/xmlstring.h +30 -30
  16. data/ext/nokolexbor/libxml/xpath.h +43 -43
  17. data/ext/nokolexbor/libxml/xpathInternals.h +128 -128
  18. data/ext/nokolexbor/memory.c +7 -0
  19. data/ext/nokolexbor/nl_document.c +11 -1
  20. data/ext/nokolexbor/nl_node.c +37 -16
  21. data/ext/nokolexbor/nl_node_set.c +23 -9
  22. data/ext/nokolexbor/nl_xpath_context.c +19 -14
  23. data/ext/nokolexbor/private/buf.h +1 -1
  24. data/ext/nokolexbor/private/error.h +3 -3
  25. data/ext/nokolexbor/xml_SAX2.c +8 -8
  26. data/ext/nokolexbor/xml_buf.c +19 -19
  27. data/ext/nokolexbor/xml_chvalid.c +25 -25
  28. data/ext/nokolexbor/xml_dict.c +69 -69
  29. data/ext/nokolexbor/xml_encoding.c +2 -2
  30. data/ext/nokolexbor/xml_error.c +51 -51
  31. data/ext/nokolexbor/xml_globals.c +329 -329
  32. data/ext/nokolexbor/xml_hash.c +131 -131
  33. data/ext/nokolexbor/xml_memory.c +25 -25
  34. data/ext/nokolexbor/xml_parser.c +3 -3
  35. data/ext/nokolexbor/xml_parserInternals.c +15 -15
  36. data/ext/nokolexbor/xml_pattern.c +103 -103
  37. data/ext/nokolexbor/xml_string.c +93 -93
  38. data/ext/nokolexbor/xml_threads.c +61 -61
  39. data/ext/nokolexbor/xml_tree.c +12 -12
  40. data/ext/nokolexbor/xml_xpath.c +1194 -1203
  41. data/lib/nokolexbor/version.rb +1 -1
  42. data/patches/0003-lexbor-attach-template-content-to-self.patch +13 -0
  43. metadata +2 -2
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nokolexbor
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.6'
5
5
  end
@@ -11,3 +11,16 @@ index 884fede..29c1e69 100755
11
11
  element->content->node.ns = LXB_NS_HTML;
12
12
  element->content->host = lxb_dom_interface_element(element);
13
13
 
14
+ diff --git i/source/lexbor/html/serialize.c w/source/lexbor/html/serialize.c
15
+ index df9689d..5e2ff91 100755
16
+ --- i/source/lexbor/html/serialize.c
17
+ +++ w/source/lexbor/html/serialize.c
18
+ @@ -272,7 +272,7 @@ lxb_html_serialize_node_cb(lxb_dom_node_t *node,
19
+ }
20
+ }
21
+
22
+ - skip_it = lxb_html_node_is_void(node);
23
+ + skip_it = lxb_html_node_is_void(node) || node->local_name == LXB_TAG_TEMPLATE;
24
+
25
+ if (skip_it == false && node->first_child != NULL) {
26
+ node = node->first_child;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokolexbor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yicheng Zhou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-19 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler