The real problem here is that the characters [ and ] are illegal in an HTML4 (or XML) id attribute - look at the following:
http://www.w3.org/TR/html401/types.html#type-name
(for the normative definition of the id attribute look at www.w3.org//TR/html401/struct/global.html#adef-id)