Creates a specific attribute when a children has a id