Skip to content

Conversation

nielsdos
Copy link
Member

Only dtd named node maps should have string-based indexing. The ce check is fragile, just check for the presence of an xml hash table.

@nielsdos
Copy link
Member Author

Interesting, this breaks Symfony because of the behaviour change wrt attribute named node maps. Will think a bit more about an elegant solution...

…e-based indexing, causing loss of elements when converted to arrays

Only (dtd) named node maps should have string-based indexing.
The ce check is fragile, just check for the presence of an xml hash
table.
Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sensible to me.

@nielsdos nielsdos closed this in fc7c353 Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getElementsByTagName returns collections with tagName-based indexing, causing loss of elements when converted to arrays
2 participants