Add more validations to XPath parser.
require "rexml/docuemnt"
by default.
[GitHub#36][Patch by Koichi ITO]
Don’t add #dcloe
method 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#clone
doesn’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
taint
with Ruby 2.7 or later.
[GitHub#21][Patch by Jeremy Evans]elsif
typo.
[GitHub#22][Patch by Nobuyoshi Nakada]Jeremy Evans
Nobuyoshi Nakada
REXML::XMLDecl#close
doesn’t copy @writethis
.
[GitHub#20][Patch by 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]
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]
nil
variable 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#prefix
returns ""
for no namespace attribute.
REXML::Attribute#namespace
returns ""
for no namespace attribute.
Improved backward compatibility.
Restored REXML::Parsers::BaseParser::UNQME_STR
because 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 :quote
to
REXML::Document#context[:prologue_quote]
.
You can use '
as quote character by specifying :apostrophe
to REXML::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]
REXML::Text#clone
escapes value twice.
[ruby-dev:50626][Bug #15058][Reported by Ryosuke Nanba]Takashi Oguma
Ariel Zelivansky
Jean Boussier
Ryosuke Nanba