Using document.evaluate with an XPath targeting an EMPTY namespaced attribute does not return the expected result

Confirmed Issue #9544701 • Assigned to Kris K.


Oct 26, 2016
This issue is public.
Found in
  • Microsoft Edge
Standard affected
XML Path Language (XPath)

Found in build #
Reported by 1 person

Sign in to watch or report this issue.

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

See simple test case here:


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Travis L.” to “Kris K.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in