Index: markup/path.py =================================================================== --- markup/path.py (revision 126) +++ markup/path.py (working copy) @@ -169,8 +169,8 @@ def _node_test_any_attribute(): def _node_test_any_attribute(kind, data, _): - if kind is START and data[1]: - return data[1] + if kind is START: + return data[1] or [(None, None)] _node_test_any_attribute.axis = 'attribute' return _node_test_any_attribute