-
Dropped support for Ruby 2.5 (Ruby 2.6 or later is now required)
- GH-271
- GH-347
- Patch by NAITOH Jun
- Reported by pboling
-
Removed unused
REXML::QuickPath(rexml/quickpath)- GH-250
- GH-362
- Patch by Sutou Kouhei
- Reported by NAITOH Jun
-
Changed
REXML::Functionsto aREXML::FunctionsClassinstance for thread safety and removed unusedREXML::Functions.text,.processing_instruction,.variables, and.namespace_context- GH-327
- GH-329
- GH-368
- Patch by tomoya ishida
-
Switched available XPath function checks from a denylist to an allowlist
- Monkey-patching custom XPath functions onto
REXML::Functionsis no longer supported - GH-369
- Patch by tomoya ishida, Sutou Kouhei
- Monkey-patching custom XPath functions onto
-
Stopped falling back to
XPath.matchfor unregistered XPath functions inFunctionsClass#send(now returns[])- GH-364
- Patch by tomoya ishida
-
Changed XPath to always return node-sets in document order
- Changes the returned order of
XPath.match/XPath.firstfor reverse axes such asancestor::andpreceding::to match the XPath 1.0 specification - GH-319
- GH-320
- GH-356
- Patch by tomoya ishida, NAITOH Jun
- Reported by tomoya ishida
- Changes the returned order of
-
Stopped matching prefixed attributes by their local name only
Attributes#[],#get_attribute, andElement#attributeno longer returnx:bfor"b"; use the qualified name ("x:b") or a namespaceAttributes#keysnow returns qualified names (e.g."xmlns:x","x:b")- GH-335
- Patch by tomoya ishida
-
Validated XPath variable values and fixed
id()return value- Unsupported variable value types now raise
TypeError, predicates on non-nodeset variables return[], and unimplementedid()returns[]instead ofnil - GH-15
- GH-342
- Patch by tomoya ishida
- Reported by Sutou Kouhei
- Unsupported variable value types now raise
-
Removed non-working XPath
namespace::axis handling- Emits a warning and returns
[]instead of raisingNoMethodError - GH-323
- Patch by tomoya ishida
- Emits a warning and returns
-
Changed XPath
modoperator to use truncating remainder (Numeric#remainder) and returnNaNformod 0- Matches XPath 1.0 for negative operands and no longer raises
ZeroDivisionErrorfor a zero divisor - GH-385
- GH-386
- Patch by Sourya Singh
- Reported by bardrop
- Matches XPath 1.0 for negative operands and no longer raises
-
Returned
Infinity/NaNfrom XPathstring(),floor(), andceiling()instead of raisingFloatDomainError- GH-374
- Patch by KBS
-
Improved performance
- GH-299
- GH-300
- GH-303
- GH-310
- GH-311
- GH-313
- GH-315
- GH-325
- GH-330
- GH-333
- GH-339
- GH-341
- GH-359
- GH-391
- Patch by NAITOH Jun, tomoya ishida, Gal Be
-
Made REXML Ractor-compatible
- GH-344
- Patch by John Hawthorn
-
Deprecated unused
REXML::Text.read_with_substitution(useREXML::Text.unnormalizeinstead)- GH-363
- Patch by Sutou Kouhei
-
Supported parenthesized XPath expressions and
abbreviateof parentheses- GH-316
- GH-317
- GH-322
- GH-328
- Patch by tomoya ishida
- Reported by tomoya ishida
-
Supported
string-length()XPath function without an argument- GH-337
- Patch by Sai Asish Y
-
Accepted processing instructions in the internal DTD subset
- GH-377
- Patch by Wleeaf
-
Accepted non-ASCII names, combining characters, and extenders in DOCTYPE, processing instructions, DTD declarations, elements, and attributes
- GH-378
- GH-379
- Patch by Wleeaf
-
Accepted any XML whitespace around XPath operators
and,or,div, andmod- GH-399
- Patch by Moksh Upadhyay
-
Rejected underscored XPath function names (e.g.
local_name()) in strict mode (default mode keeps the alias for backward compatibility)- GH-352
- GH-366
- Patch by JinHyuk Sung
- Reported by tomoya ishida
-
Improved documentation
- GH-151
- GH-307
- GH-308
- GH-348
- GH-360
- GH-367
- Patch by Burdette Lamar, NAITOH Jun
- Reported by Hiroya Fujinami
-
Fixed an issue when executing
REXML::Parsers::SAX2Parser#parsewithout specifying#listen- GH-302
- Patch by NAITOH Jun
-
Fixed infinite entity expansion by detecting circular references
- Circular entity references now raise
REXML::ParseExceptioninstead ofSystemStackError - GH-312
- Patch by NAITOH Jun
- Circular entity references now raise
-
Fixed parsing XPath expressions with string literals containing parentheses and brackets
- GH-318
- Patch by tomoya ishida
-
Fixed XPath
normalize-space()function- GH-324
- Patch by tomoya ishida
-
Fixed XPath functions not to return a primitive value wrapped in an array
- GH-326
- Patch by tomoya ishida
-
Fixed XPath
selfaxis nodeset position- GH-336
- Patch by tomoya ishida
-
Fixed
XMLDeclbeing included in XPathdescendant::node()results- GH-331
- GH-341
- Patch by tomoya ishida
- Reported by tomoya ishida
-
Fixed XPath name functions (
name(),local-name(),namespace-uri())- Uses the first node in document order without skipping unnamed nodes (e.g.
name(root/node())returns""instead of"node"when a text node comes first) - GH-343
- Patch by tomoya ishida, NAITOH Jun
- Uses the first node in document order without skipping unnamed nodes (e.g.
-
Fixed
substring-after()XPath function not to use Regexp match- GH-355
- Patch by Vít Ondruch
-
Fixed
REXML::Element#attributewhen a namespace URI has multiple bindings- GH-346
- GH-357
- Patch by JinHyuk Sung
- Reported by tomoya ishida
-
Avoided stack exhaustion in
REXML::Formatters::Default#write_elementfor deeply nested documents- GH-354
- GH-358
- Patch by NAITOH Jun
- Reported by Brian
-
Explicitly required
"set"inxpath_parser.rb- GH-361
- Patch by tomoya ishida
-
Stopped substituting entities with an empty value
- Entities declared with an empty value are no longer inserted between every character during text/attribute normalization
- GH-370
- Patch by NAITOH Jun
-
Fixed
REXML::Formatters::Prettymutating text nodes while pretty printing- GH-371
- Patch by KBS
-
Rejected invalid character references in entity expansion
- Invalid XML character references inside entity values now raise
REXML::ParseException - GH-372
- Patch by Sutou Kouhei
- Invalid XML character references inside entity values now raise
-
Fixed XPath
lang()not to match a language prefix that is not a sublanguage- GH-373
- Patch by KBS
-
Fixed RELAX NG validation of documents with XML declarations
- GH-241
- GH-380
- Patch by FFspiky
- Reported by gemmaro
-
Fixed XPath
substring()with a start before the first character andround()for negative halves- e.g.
substring('12345', 0)now returns"12345"instead of"1234", andround(-2.5)returns-2instead of-3 - GH-382
- Patch by bardrop
- e.g.
-
Fixed XPath comparisons between a node-set and a boolean, number, or string
- Fixes reversed relational operators when the node-set is on the right (e.g.
10 > @price), boolean comparisons, and string comparisons - GH-383
- Patch by bardrop
- Fixes reversed relational operators when the node-set is on the right (e.g.
-
Preserved whitespace before word operators after XPath predicates
- GH-384
- GH-387
- Patch by FFspiky
- Reported by bardrop
-
Fixed XPath unary minus parsing with leading or separating spaces
- Unary minus without an operand (e.g.
"-"," - - ") now raisesREXML::ParseException - GH-393
- Patch by NAITOH Jun
- Unary minus without an operand (e.g.
-
Renamed the XPath test fixture
xp.tsttoxp.txt- GH-394
- Patch by botamochi0x12
-
Formatted small floats without scientific notation in XPath
string()- e.g.
string(0.00001)now returns"0.00001"instead of"1.0e-05" - GH-395
- Patch by Moksh Upadhyay
- e.g.
-
Fixed XPath parsing of expressions and literals containing line breaks
- GH-397
- Patch by Moksh Upadhyay
-
Fixed XPath matching for the predefined
xmlnamespace and empty strings- GH-396
- GH-398
- Patch by Akshay Kumar Sharma
- Reported by Dickson Wu
-
NAITOH Jun
-
Sutou Kouhei
-
tomoya ishida
-
Burdette Lamar
-
John Hawthorn
-
Sai Asish Y
-
Vít Ondruch
-
JinHyuk Sung
-
KBS
-
Wleeaf
-
FFspiky
-
Sourya Singh
-
Gal Be
-
bardrop
-
Moksh Upadhyay
-
Akshay Kumar Sharma
-
botamochi0x12
-
Hiroya Fujinami
-
Brian
-
pboling
-
gemmaro
-
Dickson Wu
- Accept
REXML::Document.new("")for backward compatibility- GH-296
- GH-295
- Patch by NAITOH Jun
- Reported by Joe Rafaniello
-
NAITOH Jun
-
Joe Rafaniello
- Reject no root element XML as an invalid XML
- GH-289
- GH-291
- Patch by NAITOH Jun
- Reported by Sutou Kouhei
- Fixed an issue with
IOSource#read_untilwhen reaching the end of a file- GH-287
- GH-288
- Patch by NAITOH Jun
- Reported by Jason Thomas
-
NAITOH Jun
-
Sutou Kouhei
-
Jason Thomas
-
Improved performance.
- GH-244
- GH-245
- GH-246
- GH-249
- GH-256
- Patch by NAITOH Jun
-
Raise appropriate exception when failing to match start tag in DOCTYPE
- GH-247
- Patch by NAITOH Jun
-
Deprecate accepting array as an element in XPath.match, first and each
- GH-252
- Patch by tomoya ishida
-
Don't call needless encoding_updated
- GH-259
- Patch by Sutou Kouhei
-
Reuse XPath::match
- GH-263
- Patch by pboling
-
Cache redundant calls for doctype
- GH-264
- Patch by pboling
-
Use Safe Navigation (&.) from Ruby 2.3
- GH-265
- Patch by pboling
-
Remove redundant return statements
- GH-266
- Patch by pboling
-
Added XML declaration check & Source#skip_spaces method
- GH-282
- Patch by NAITOH Jun
- Reported by Sofi Aberegg
-
Fix docs typo
- GH-248
- Patch by James Coleman
-
Fix reverse sort in xpath_parser
- GH-251
- Patch by tomoya ishida
-
Fix duplicate responses in XPath following, following-sibling, preceding, preceding-sibling
- GH-255
- Patch by NAITOH Jun
-
Fix wrong Encoding resolution
- GH-258
- Patch by Sutou Kouhei
-
Handle nil when parsing fragment
- GH-267
- GH-268
- Patch by pboling
-
[Documentation] Use # to reference instance methods
- GH-269
- GH-270
- Patch by pboling
-
Fix & Deprecate REXML::Text#text_indent
- GH-273
- GH-275
- Patch by pboling
-
remove bundler from dev deps
- GH-276
- GH-277
- Patch by pboling
-
remove ostruct from dev deps
- GH-280
- GH-281
- Patch by pboling
-
NAITOH Jun
-
tomoya ishida
-
James Coleman
-
pboling
-
Sutou Kouhei
-
Sofi Aberegg
- Improved performance.
- GH-226
- GH-227
- GH-237
- Patch by NAITOH Jun
- Fix serialization of ATTLIST is incorrect
- GH-233
- GH-234
- Patch by OlofKalufs
- Reported by OlofKalufs
-
NAITOH Jun
-
OlofKalufs
-
Improved performance.
- GH-216
- Patch by NAITOH Jun
-
JRuby: Improved parse performance.
- GH-219
- Patch by João Duarte
-
Added support for reusing pull parser.
- GH-214
- GH-220
- Patch by Dmitry Pogrebnoy
-
Improved error handling when source is
IO.- GH-221
- Patch by NAITOH Jun
-
NAITOH Jun
-
João Duarte
-
Dmitry Pogrebnoy
- Improved performance.
- GH-210
- Patch by NAITOH Jun.
-
Fixed a parse bug for text only invalid XML.
- GH-215
- Patch by NAITOH Jun.
-
Fixed a parse bug that
�x...;is accepted as a character reference.
- NAITOH Jun
- SAX2: Improve parse performance.
- GH-207
- Patch by NAITOH Jun.
- Fixed a bug that unexpected attribute namespace conflict error for
the predefined "xml" namespace is reported.
- GH-208
- Patch by KITAITI Makoto
-
NAITOH Jun
-
KITAITI Makoto
-
Added local entity expansion limit methods
- GH-192
- GH-202
- Reported by takuya kodama.
- Patch by NAITOH Jun.
-
Removed explicit strscan dependency
- GH-204
- Patch by Bo Anderson.
-
takuya kodama
-
NAITOH Jun
-
Bo Anderson
-
Removed duplicated entity expansions for performance.
- GH-194
- Patch by Viktor Ivarsson.
-
Improved namespace conflicted attribute check performance. It was too slow for deep elements.
- Reported by l33thaxor.
-
Fixed a bug that default entity expansions are counted for security check. Default entity expansions should not be counted because they don't have a security risk.
- GH-198
- GH-199
- Patch Viktor Ivarsson
-
Fixed a parser bug that parameter entity references in internal subsets are expanded. It's not allowed in the XML specification.
- GH-191
- Patch by NAITOH Jun.
-
Fixed a stream parser bug that user-defined entity references in text aren't expanded.
- GH-200
- Patch by NAITOH Jun.
-
Viktor Ivarsson
-
NAITOH Jun
-
l33thaxor
- Fixed a bug that
REXML::Security.entity_expansion_text_limitcheck has wrong text size calculation in SAX and pull parsers.- GH-193
- GH-195
- Reported by Viktor Ivarsson.
- Patch by NAITOH Jun.
-
Viktor Ivarsson
-
NAITOH Jun
- Fixed a bug that
REXML::Securityisn't defined whenREXML::Parsers::StreamParseris used andrexml/parsers/streamparseris only required.- GH-189
- Patch by takuya kodama.
- takuya kodama
-
Added support for detecting invalid XML that has unsupported content before root element
- GH-184
- Patch by NAITOH Jun.
-
Added support for
REXML::Security.entity_expansion_limit=andREXML::Security.entity_expansion_text_limit=in SAX2 and pull parsers- GH-187
- Patch by NAITOH Jun.
-
Added more tests for invalid XMLs.
- GH-183
- Patch by Watson.
-
Added more performance tests.
- Patch by Watson.
-
Improved parse performance.
- GH-186
- Patch by tomoya ishida.
-
NAITOH Jun
-
Watson
-
tomoya ishida
-
Improved parse performance.
- GH-160
- Patch by NAITOH Jun.
-
Improved parse performance.
- GH-169
- GH-170
- GH-171
- GH-172
- GH-173
- GH-174
- GH-175
- GH-176
- GH-177
- Patch by Watson.
-
Added support for raising a parse exception when an XML has extra content after the root element.
- GH-161
- Patch by NAITOH Jun.
-
Added support for raising a parse exception when an XML declaration exists in wrong position.
- GH-162
- Patch by NAITOH Jun.
-
Removed needless a space after XML declaration in pretty print mode.
- GH-164
- Patch by NAITOH Jun.
-
Stopped to emit
:textevent after the root element.- GH-167
- Patch by NAITOH Jun.
- Fixed a bug that SAX2 parser doesn't expand predefined entities for
characterscallback.- GH-168
- Patch by NAITOH Jun.
-
NAITOH Jun
-
Watson
-
Added support for detecting malformed top-level comments.
- GH-145
- Patch by Hiroya Fujinami.
-
Improved
REXML::Element#attributeperformance.- GH-146
- Patch by Hiroya Fujinami.
-
Added support for detecting malformed
<!-->comments.- GH-147
- Patch by Hiroya Fujinami.
-
Added support for detecting unclosed
DOCTYPE.- GH-152
- Patch by Hiroya Fujinami.
-
Added
changlog_urimetadata to gemspec.- GH-156
- Patch by fynsta.
-
Improved parse performance.
- GH-157
- GH-158
- Patch by NAITOH Jun.
-
Fixed a bug that large XML can't be parsed.
- GH-154
- Patch by NAITOH Jun.
-
Fixed a bug that private constants are visible.
- GH-155
- Patch by NAITOH Jun.
-
Hiroya Fujinami
-
NAITOH Jun
-
fynsta
- Added support for strscan 0.7.0 installed with Ruby 2.6.
- GH-142
- Reported by Fernando Trigoso.
- Fernando Trigoso
-
Added support for old strscan.
- GH-132
- Reported by Adam.
-
Improved attribute value parse performance.
- GH-135
- Patch by NAITOH Jun.
-
Improved
REXML::Node#each_recursiveperformance.- GH-134
- GH-139
- Patch by Hiroya Fujinami.
-
Improved text parse performance.
- Reported by mprogrammer.
- Adam
- NAITOH Jun
- Hiroya Fujinami
- mprogrammer
- Suppressed a warning
-
Improve parse performance by using
StringScanner.-
GH-106
-
GH-107
-
GH-108
-
GH-109
-
GH-112
-
GH-113
-
GH-114
-
GH-115
-
GH-116
-
GH-117
-
GH-118
-
GH-119
-
GH-121
-
Patch by NAITOH Jun.
-
-
Improved parse performance when an attribute has many
>s.- GH-126
-
XPath: Fixed a bug of
normalize_space(array).-
GH-110
-
GH-111
-
Patch by flatisland.
-
-
XPath: Fixed a bug that wrong position is used with nested path.
-
GH-110
-
GH-122
-
Reported by jcavalieri.
-
Patch by NAITOH Jun.
-
-
Fixed a bug that an exception message can't be generated for invalid encoding XML.
-
GH-29
-
GH-123
-
Reported by DuKewu.
-
Patch by NAITOH Jun.
-
- NAITOH Jun
- flatisland
- jcavalieri
- DuKewu
-
Required Ruby 2.5 or later explicitly. GH-69 [Patch by Ivo Anjo]
-
Added documentation for maintenance cycle. GH-71 [Patch by Ivo Anjo]
-
Added tutorial. GH-77 [GH-78][gh-78] [Patch by Burdette Lamar]
-
Improved performance and memory usage. GH-94 [Patch by fatkodima]
-
REXML::Parsers::XPathParser#abbreviate: Added support for function arguments. GH-95 [Reported by pulver] -
REXML::Parsers::XPathParser#abbreviate: Added support for string literal that contains double-quote. GH-96 [Patch by pulver] -
REXML::Parsers::XPathParser#abbreviate: Added missing/to:descendant_or_self/:self/:parent. GH-97 [Reported by pulver] -
REXML::Parsers::XPathParser#abbreviate: Added support for more patterns. GH-97 [Reported by pulver]
-
Fixed a typo in NEWS. GH-72 [Patch by Spencer Goodman]
-
Fixed a typo in NEWS. GH-75 [Patch by Andrew Bromwich]
-
Fixed documents. GH-87 [Patch by Alexander Ilyin]
-
Fixed a bug that
Attriuteconvert'and'even whenattribute_quote: :quoteis used. GH-92 [Reported by Edouard Brière] -
Fixed links in tutorial. GH-99 [Patch by gemmaro]
-
Ivo Anjo
-
Spencer Goodman
-
Andrew Bromwich
-
Burdette Lamar
-
Alexander Ilyin
-
Edouard Brière
-
fatkodima
-
pulver
-
gemmaro
-
Add more validations to XPath parser.
-
require "rexml/document"by default. [GitHub#36][Patch by Koichi ITO] -
Don't add
#dclonemethod to core classes globally. [GitHub#37][Patch by Akira Matsuda] -
Add more documentations. [Patch by Burdette Lamar]
-
Added
REXML::Elements#parent. [GitHub#52][Patch by Burdette Lamar]
-
Fixed a bug that
REXML::DocType#clonedoesn't copy external ID information. -
Fixed round-trip vulnerability bugs. See also: https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/ [HackerOne#1104077][CVE-2021-28965][Reported by Juho Nurminen]
-
Koichi ITO
-
Akira Matsuda
-
Burdette Lamar
-
Juho Nurminen
- Don't use
taintwith Ruby 2.7 or later. [GitHub#21][Patch by Jeremy Evans]
- Fixed a
elsiftypo. [GitHub#22][Patch by Nobuyoshi Nakada]
-
Jeremy Evans
-
Nobuyoshi Nakada
- Fixed a bug that
REXML::XMLDecl#closedoesn't copy@writethis. [GitHub#20][Patch by hirura]
- hirura
-
xpath: Fixed a bug for equality and relational expressions. [GitHub#17][Reported by Mirko Budszuhn]
-
xpath: Fixed
boolean()implementation. -
xpath: Fixed
local_name()with nonexistent node. -
xpath: Fixed
number()implementation with node set. [GitHub#18][Reported by Mirko Budszuhn]
- Mirko Budszuhn
-
Improved error message. [GitHub#12][Patch by FUJI Goro]
-
Improved error message. [GitHub#16][Patch by ujihisa]
-
Improved documentation markup. [GitHub#14][Patch by Alyssa Ross]
- Fixed a bug that
nilvariable value raises an unexpected exception. [GitHub#13][Patch by Alyssa Ross]
-
FUJI Goro
-
Alyssa Ross
-
ujihisa
-
Fixed a bug that no namespace attribute isn't matched with prefix.
[ruby-list:50731][Reported by Yasuhiro KIMURA]
-
Fixed a bug that the default namespace is applied to attribute names.
NOTE: It's a backward incompatible change. If your program has any problem with this change, please report it. We may revert this fix.
-
REXML::Attribute#prefixreturns""for no namespace attribute. -
REXML::Attribute#namespacereturns""for no namespace attribute.
-
- Yasuhiro KIMURA
-
Improved backward compatibility.
Restored
REXML::Parsers::BaseParser::UNQME_STRbecause it's used by kramdown.
-
Added support for customizing quote character in prologue. [GitHub#8][Bug #9367][Reported by Takashi Oguma]
-
You can use
"as quote character by specifying:quotetoREXML::Document#context[:prologue_quote]. -
You can use
'as quote character by specifying:apostrophetoREXML::Document#context[:prologue_quote].
-
-
Added processing instruction target check. The target must not nil. [GitHub#7][Reported by Ariel Zelivansky]
-
Added name check for element and attribute. [GitHub#7][Reported by Ariel Zelivansky]
-
Stopped to use
Exception. [GitHub#9][Patch by Jean Boussier]
- Fixed a bug that
REXML::Text#cloneescapes value twice. [ruby-dev:50626][Bug #15058][Reported by Ryosuke Nanba]
-
Takashi Oguma
-
Ariel Zelivansky
-
Jean Boussier
-
Ryosuke Nanba