This type of error happens from time to time when you are editing template derived pages. Sometimes just closing and re-opening Dreamweaver will help you to get past this, other times you will need to temporarily detach the page from the template and apply the code, then re-attach the template to the page. If you do some looking around in this forum you will find a few instances of this that others have encountered. It seems to be a sporadic type of error that does not always happen for all users.