I dont think Dreamweaver is inspecting the code correctly, o you get a syntax error in the browser.
How about if you close the page and open it in DW again? Does it still show a syntax error?
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.