Ticket #99 (closed defect: fixed)
XMLDecl parent and next_sibling methods do not work
| Reported by: | henrik | Owned by: | ser |
|---|---|---|---|
| Priority: | high | Milestone: | 3.1.8 |
| Component: | DOM | Version: | 3.1.4 |
| Severity: | major | Keywords: | |
| Cc: | Ruby version: | 1.8.5 | |
| Operating system: | All |
Description
For documents with an explicit XML declaration, the parent and next_sibling methods do not work. (It is possible to locate the XML declaration using previous_sibling from the root element.)
This is a problem for programs that use treewalkers or node iterators, like the Test::Unit::Xml framework. The treewalker cannot walk the document tree because it gets stuck on the XML declaration.
The problem is serious because XML declarations are common, and mandatory in XML 1.1.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
