A council has lost a legal bid to gain parental rights over a child whose parents have learning difficulties.
The child's parents appealed to the UK Supreme Court after Scotland's highest court upheld a decision to grant West Lothian Council a permanence order for her.
Born in 2013, the girl, referred to as EV, has been in care since her birth.
West Lothian Council applied for the permanence order following concern about her father, who in 2010 was charged with criminal sexual conduct with another learning disabled person of a similar age, although the charges were dropped.
In March 2016, the Lord Ordinary at the Court of Session granted the council a permanence order which extinguished the parental rights and responsibilities on the parents and vested them in the local authority.
The order also specified there should be no contact between EV and the parents and included an order granting authority to adopt.
The parents appealed against the decision but the Inner House of the Court of Session upheld the permanence order, though it quashed the authority to adopt and removed the prohibition on contact.
The mother and father then further appealed to the Supreme Court, which on Wednesday issued its judgment refusing the petition for a permanence order.
The judges found the Lord Ordinary's decision was "deficient in a number of respects" and that he did not determine the threshold issue which must be considered before making a permanence order.
According to the test, the court must not make an order unless it considers it would be better for the child that the order be made than it is not.
It must also be satisfied, in relation to each of the parents, that the child's residence with that person is likely to be "seriously detrimental" to her welfare.
They said: "Although much was said about the local authority's concerns about the father's behaviour years earlier, nothing was said, for example, about how the child's current foster care arrangements were working, or about the prospects of a suitable adoptive placement being found.
"There was no analysis of the merits of her living with a foster carer who has no intention of adopting her, as compared with her living with her parents.
"At the most basic level, the possibility of her parents' being able to offer her a permanent home might have been a relevant factor, particularly if the prospects of her being adopted were poor, to set against the negative factors."
The Lord Ordinary heard evidence from social workers that even with their extensive support, the mother, who has two children by a previous partner, "might only even master physical care tasks, and not manage the more complex tasks of meeting EV's emotional and social needs".
Social workers were concerned about the father's ability to acquire parenting skills and to co-operate with them.
They said it is apparent the local authority still considers adoption is the best option for the child.
The judges concluded: "In these circumstances, the most sensible way forward is for this court to allow the appeals and refuse the petition, leaving it to the local authority to commence fresh proceedings as and when that may be appropriate."
A West Lothian Council spokesman said: "We are considering the terms of the court's decision and its possible implications for future permanence applications. It is not appropriate to comment on individual cases."
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here