nokogiri 1.12.2-java → 1.13.0-java

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -0
  3. data/README.md +9 -7
  4. data/bin/nokogiri +63 -50
  5. data/dependencies.yml +5 -6
  6. data/ext/java/nokogiri/Html4SaxPushParser.java +14 -19
  7. data/ext/java/nokogiri/XmlDocumentFragment.java +4 -15
  8. data/ext/java/nokogiri/XmlNamespace.java +0 -8
  9. data/ext/java/nokogiri/XmlNode.java +32 -16
  10. data/ext/java/nokogiri/XmlNodeSet.java +0 -4
  11. data/ext/java/nokogiri/XmlReader.java +12 -0
  12. data/ext/java/nokogiri/XmlSaxParserContext.java +31 -93
  13. data/ext/java/nokogiri/XmlSaxPushParser.java +17 -25
  14. data/ext/java/nokogiri/XmlSchema.java +1 -1
  15. data/ext/java/nokogiri/internals/NokogiriEntityResolver.java +1 -1
  16. data/ext/java/nokogiri/internals/NokogiriErrorHandler.java +29 -8
  17. data/ext/java/nokogiri/internals/NokogiriHandler.java +6 -24
  18. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler.java +9 -8
  19. data/ext/java/nokogiri/internals/NokogiriNonStrictErrorHandler4NekoHtml.java +10 -9
  20. data/ext/java/nokogiri/internals/NokogiriStrictErrorHandler.java +7 -6
  21. data/ext/java/nokogiri/internals/SaveContextVisitor.java +2 -0
  22. data/ext/java/nokogiri/internals/XmlDomParserContext.java +16 -25
  23. data/ext/nokogiri/extconf.rb +51 -35
  24. data/ext/nokogiri/gumbo.c +11 -11
  25. data/ext/nokogiri/html4_element_description.c +1 -1
  26. data/ext/nokogiri/html4_sax_parser_context.c +2 -1
  27. data/ext/nokogiri/nokogiri.c +1 -1
  28. data/ext/nokogiri/xml_document.c +36 -36
  29. data/ext/nokogiri/xml_document_fragment.c +0 -2
  30. data/ext/nokogiri/xml_dtd.c +2 -2
  31. data/ext/nokogiri/xml_encoding_handler.c +25 -11
  32. data/ext/nokogiri/xml_namespace.c +2 -2
  33. data/ext/nokogiri/xml_node.c +647 -335
  34. data/ext/nokogiri/xml_reader.c +37 -11
  35. data/ext/nokogiri/xml_xpath_context.c +72 -49
  36. data/lib/nokogiri/class_resolver.rb +67 -0
  37. data/lib/nokogiri/css/node.rb +9 -8
  38. data/lib/nokogiri/css/parser.rb +11 -3
  39. data/lib/nokogiri/css/parser.y +10 -2
  40. data/lib/nokogiri/css/parser_extras.rb +20 -20
  41. data/lib/nokogiri/css/syntax_error.rb +1 -0
  42. data/lib/nokogiri/css/tokenizer.rb +2 -1
  43. data/lib/nokogiri/css/tokenizer.rex +2 -1
  44. data/lib/nokogiri/css/xpath_visitor.rb +174 -75
  45. data/lib/nokogiri/css.rb +38 -6
  46. data/lib/nokogiri/decorators/slop.rb +8 -7
  47. data/lib/nokogiri/extension.rb +1 -1
  48. data/lib/nokogiri/gumbo.rb +1 -0
  49. data/lib/nokogiri/html.rb +16 -10
  50. data/lib/nokogiri/html4/builder.rb +1 -0
  51. data/lib/nokogiri/html4/document.rb +84 -75
  52. data/lib/nokogiri/html4/document_fragment.rb +11 -7
  53. data/lib/nokogiri/html4/element_description.rb +1 -0
  54. data/lib/nokogiri/html4/element_description_defaults.rb +426 -520
  55. data/lib/nokogiri/html4/entity_lookup.rb +2 -1
  56. data/lib/nokogiri/html4/sax/parser.rb +2 -1
  57. data/lib/nokogiri/html4/sax/parser_context.rb +1 -0
  58. data/lib/nokogiri/html4/sax/push_parser.rb +7 -7
  59. data/lib/nokogiri/html4.rb +11 -5
  60. data/lib/nokogiri/html5/document.rb +24 -10
  61. data/lib/nokogiri/html5/document_fragment.rb +5 -2
  62. data/lib/nokogiri/html5/node.rb +6 -3
  63. data/lib/nokogiri/html5.rb +68 -64
  64. data/lib/nokogiri/jruby/dependencies.rb +10 -9
  65. data/lib/nokogiri/nokogiri.jar +0 -0
  66. data/lib/nokogiri/syntax_error.rb +1 -0
  67. data/lib/nokogiri/version/constant.rb +2 -1
  68. data/lib/nokogiri/version/info.rb +19 -13
  69. data/lib/nokogiri/version.rb +1 -0
  70. data/lib/nokogiri/xml/attr.rb +5 -3
  71. data/lib/nokogiri/xml/attribute_decl.rb +2 -1
  72. data/lib/nokogiri/xml/builder.rb +69 -31
  73. data/lib/nokogiri/xml/cdata.rb +2 -1
  74. data/lib/nokogiri/xml/character_data.rb +1 -0
  75. data/lib/nokogiri/xml/document.rb +178 -96
  76. data/lib/nokogiri/xml/document_fragment.rb +41 -38
  77. data/lib/nokogiri/xml/dtd.rb +3 -2
  78. data/lib/nokogiri/xml/element_content.rb +1 -0
  79. data/lib/nokogiri/xml/element_decl.rb +2 -1
  80. data/lib/nokogiri/xml/entity_decl.rb +3 -2
  81. data/lib/nokogiri/xml/entity_reference.rb +1 -0
  82. data/lib/nokogiri/xml/namespace.rb +2 -0
  83. data/lib/nokogiri/xml/node/save_options.rb +7 -4
  84. data/lib/nokogiri/xml/node.rb +512 -348
  85. data/lib/nokogiri/xml/node_set.rb +46 -54
  86. data/lib/nokogiri/xml/notation.rb +12 -0
  87. data/lib/nokogiri/xml/parse_options.rb +11 -7
  88. data/lib/nokogiri/xml/pp/character_data.rb +8 -6
  89. data/lib/nokogiri/xml/pp/node.rb +24 -26
  90. data/lib/nokogiri/xml/pp.rb +1 -0
  91. data/lib/nokogiri/xml/processing_instruction.rb +2 -1
  92. data/lib/nokogiri/xml/reader.rb +17 -19
  93. data/lib/nokogiri/xml/relax_ng.rb +1 -0
  94. data/lib/nokogiri/xml/sax/document.rb +20 -19
  95. data/lib/nokogiri/xml/sax/parser.rb +36 -34
  96. data/lib/nokogiri/xml/sax/parser_context.rb +7 -3
  97. data/lib/nokogiri/xml/sax/push_parser.rb +5 -5
  98. data/lib/nokogiri/xml/sax.rb +1 -0
  99. data/lib/nokogiri/xml/schema.rb +7 -6
  100. data/lib/nokogiri/xml/searchable.rb +42 -22
  101. data/lib/nokogiri/xml/syntax_error.rb +4 -4
  102. data/lib/nokogiri/xml/text.rb +1 -0
  103. data/lib/nokogiri/xml/xpath/syntax_error.rb +2 -1
  104. data/lib/nokogiri/xml/xpath.rb +12 -0
  105. data/lib/nokogiri/xml/xpath_context.rb +2 -3
  106. data/lib/nokogiri/xml.rb +3 -3
  107. data/lib/nokogiri/xslt/stylesheet.rb +1 -0
  108. data/lib/nokogiri/xslt.rb +3 -2
  109. data/lib/nokogiri.rb +19 -16
  110. data/lib/xsd/xmlparser/nokogiri.rb +25 -24
  111. metadata +102 -30
@@ -33,10 +33,10 @@ dealloc_namespace(xmlNsPtr ns)
33
33
  */
34
34
  NOKOGIRI_DEBUG_START(ns) ;
35
35
  if (ns->href) {
36
- xmlFree((xmlChar *)(uintptr_t)ns->href);
36
+ xmlFree(DISCARD_CONST_QUAL_XMLCHAR(ns->href));
37
37
  }
38
38
  if (ns->prefix) {
39
- xmlFree((xmlChar *)(uintptr_t)ns->prefix);
39
+ xmlFree(DISCARD_CONST_QUAL_XMLCHAR(ns->prefix));
40
40
  }
41
41
  xmlFree(ns);
42
42
  NOKOGIRI_DEBUG_END(ns) ;