public function getElementsByClassName($class)
    {
        if (strpos($class, '"') !== false
            || strpos($class, "'") !== false
        ) {
            return array();
        }

        $xpath = './/*[contains(concat(" ", @class, " "), " ' . htmlspecialchars($class) . ' ")]';
        return $this->xpath($xpath);
    }