Earlier quoted context omitted.
Every law is judged with the intent behind the action... except for taxes which is the single exception I know of. And here the intent is pretty clear.
I hope (and think) that laws are judged primarily by their text and entirely so when it can be determined that the facts match the text even if many of us wish the text was different in light of these specific facts. Criminal trials carefully lay out how the state believes the actions of the accused meet each required element of the crime. They don’t get to say “Foo definitely killed Bar. The law intends for people t…
What do you think a legal test is?
https://en.wikipedia.org/wiki/Test_(law)
The canonical example of this is a restauraunt banning all head coverings. Despite the fact that technically everyone must adhere to it, since it disproportionally affects those who wear hijabs, it's considered a violation of civil rights.
These tests are created to help lower courts navigate grey areas, negligence is an area where this is applied a lot.