I've a problem with loading new class from my CSS file. Actually, I think it is some thing else because if I try to change the background to red just to check if it is working, nothing happens
function logging_error()
{
$html = new DOMDocument();
@$html->loadHTML("login.php");
$divToShake = $html->getElementsById('login_form');
$divToShake->setAttribute("background-color", "red");
$divToShake->item(0)->class = 'shake';
//echo $divToShake->getAttribute('class') ;
}