This doesn't seem to work with the new nokogiri based matching in rails 4.2 probably because the attribute is removed by the parser and used to set the namespace of the element.