The notation is somewhat ambiguous, but I would say that their interpretation is at least as valid as yours, and certainly consistent with how a programmer would look at it.
If you want to express the log of a power, you can write either \(\displaystyle \log x^n\) or \(\displaystyle \log (x^n)\) . If you want to express a power of a log, you should write \(\displaystyle (\log x)^n\) or, as they do but I would avoid, \(\displaystyle \log^n x\).
When you write \(\displaystyle \log (x)^n\), I would take "log(x)" as a unit, because the parentheses naturally indicate the argument, and then take the power of that; but I would ask if that is what is intended, because it is easy to see it as (x) raised to a power, and the whole used as the argument.
The ambiguity is due to the old tradition of not using parentheses around the arguments of special functions like log and sin. If we consistently used parentheses, as programmers do, then there would be no question.
The real question we need to ask is, what did the OP mean by it? All that is wrong, in my mind, is to have written it that way in the first place.