Element get attributes, first implementation and test
Element get attribute as flag