How can Dumbledore cast a spell on Harry while Harry was under the invisibility cloak? Is this a plot mistake of JKR?
Why did Malfoy's Petrificus Totalus work on Harry while he was wearing the Invisibility Cloak?