Steps to reproduce
If attempting to find all nodes with a specific namespaced attribute, the result is empty for those nodes whose attribute is an empty string.
<a my:attr=""/> is found by
//*[@my:attr=""] but not by
//*[@my:attr]. Expected result is that both expression find the node. I believe XPath considers the presence of a node/attribute to be truthy regardless of whether it is empty.
Note, this is NOT the same as the fixed https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/3739767/
See simple test case here: http://codepen.io/MartijnR/pen/xEZjPQ?editors=0011
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Brad E.”
Changed Assigned To to “Travis L.”
Changed Status to “Confirmed”