SAN FRANCISCO (AP) – The state can remove an out-of-control child from the custody of a parent even if the mother or father is not to blame for the child’s behavior, a California appeals court said Thursday.

If children face substantial risk of harming themselves, it doesn’t matter whether the parent did anything intentional to put them in that position, the 2nd District Court of Appeal ruled.

“When a child thereby faces a substantial risk of serious physical harm, a parent’s inability to supervise or protect a child is enough by itself to invoke the juvenile court’s dependency jurisdiction,” the court said in its 3-0 ruling.

The court disagreed with another state appellate court that ruled in 2010 that a parent had to be shown to be culpable for a failure or inability to supervise or protect a child. Such conflicts between appeals courts are often resolved by the state Supreme Court.

Thursday’s ruling came in the case of a Los Angeles County mother whose teen daughter repeatedly ran away from home and had a child at the age of 15. The appellate court said the girl remained incorrigible despite her mother’s best efforts, which included looking for her each time she left home, sending her to live with her grandparents and calling the police and Los Angeles County Department of Children and Family Services for help. The mother was identified in court documents only as “Lisa E.” and her daughter as “R.T.”

“(The) mother in this case was neither neglectful nor blameworthy in being unable to supervise or protect her daughter,” the court said.

But state law is clear that children can still be taken if they have suffered or are at substantial risk of suffering serious harm that a parent is unable to stop, Associate Justice Brian Hoffstadt wrote.

“We do appreciate the clarification the court made that the welfare of the child is what’s paramount here,” said Armand Montiel, a spokesman for the Los Angeles County Department of Children and Family Services. “Our work is based on the fact that the child’s safety is job one.”

The court’s ruling upheld a juvenile court’s decision to assert control over R.T. and allow the county to place her elsewhere. The county placed her back with her grandparents.

The mother appealed the decision. The girl turned 18 while the appeal was pending.

A call to the mother’s attorney was not immediately returned.

Copyright 2015 The Associated Press.