div[foo bar] should be expanded into <div foo="" bar=""></div>. close #218