Hazaar\XML\Element may have issues with elements that have only one child #45
Labels
No labels
bug
confirmed
critical
database
discussion
documentation
email-support
enhancement
feature
suggestion
support
warlock
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-mvc-old#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm not sure yet what is going on here but I have finding I get inconsistent results with the following XML:
The section in question is the
<options>
block with a single<option>
child. Although things seem to parse correctly I'm not able to access the child element. If I add another element everything works as it should.Ok, turns out when there is only one child (or none, even) then the 'children' variable is an XML\Element instead of an array so the calls to ArrayAccess methods next(), current(), etc don't work properly because they are not operating on an array.
I need to make 'children' an array always? This will alter the way child elements are accessed.
Status changed to closed by commit
96b98b4933
mentioned in commit
96b98b4933