Skip to content

XMLDecl mixed in xpath descendant::node() match result #331

Description

@tompng

XMLDecl should be excluded

# Expected
Nokogiri::XML.parse('<?xml version="1.0"?><root></root>').xpath("descendant::node()")
# => [#<Nokogiri::XML::Element:0xb38 name="root">]

# Actual
REXML::XPath.match REXML::Document.new('<?xml version="1.0"?><root></root>'), "descendant::node()"
# => [<?xml ... ?>, <root/>]
REXML::VERSION
# => "3.4.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions