After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 789963 - DomParentNode.get_elements_by_property_value fails with colon in value
DomParentNode.get_elements_by_property_value fails with colon in value
Status: RESOLVED FIXED
Product: gxml
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GXml maintainer(s)
GXml maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-11-06 12:34 UTC by Yannick Inizan
Modified: 2018-01-05 19:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Test case with "rebellious" method (438 bytes, text/x-vala)
2017-11-06 12:34 UTC, Yannick Inizan
Details

Description Yannick Inizan 2017-11-06 12:34:51 UTC
Created attachment 363054 [details]
Test case with "rebellious" method

since few pulls, get_elements_by_property_value fails sometimes when provided value contains colon (":")

(see attached example)

note : re-implement this with walking into children's tree and attribute checking works (of course)
Comment 1 Daniel Espinosa 2018-01-05 19:44:43 UTC
At first using DomDocument.document_element to call get_elements_by_property_value() works. This was a problem with GXmlDocument's implementation of DomParentNode.children

This is fixed at:

https://git.gnome.org/browse/gxml/commit/?id=88a37f769c98ec8e2d81db5fa3db3155e09e5603