they were both illegitimate children , but according to welsh law at that time , that was no obstacle to their nobility or their inheritance , provided their father acknowledged them , which king owain did .