• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 326
  • Last Modified:

Invalid tag? Dreamweaver keeps overwritting!

This problem consists of html / css / and javascript.

I have been playing with a  script for a navigational menu found at dynamic drive ( http://www.dynamicdrive.com/dynamicindex1/navigate1.htm ).

The problem is that dreamweaver insists the below tag is invalid ( the tag is in the script ).

<ul id="foldinglist" style="display:none" style=&{head};>
When i save the page - dreamweaver changes the tag to this.

<ul id="foldinglist" style="display:none">
I know there is a way to stop dreamweaver doing this but i would like to keep the clean up html default option when saving files for other reasons. So...
Can anyone tell me what is wrong with <ul id="foldinglist" style="display:none" style=&{head};> ?

Because dreamweaver changes the code - the result is that the script does not work properly in some browsers. In none compliant browsers the menu should display as a normal bullet list - without the style=&{head};> some browsers do not do this.

Is there a work around for this so that i dont have to turn off the automatic invalid code feature in dreamweaver?

0
1Host
Asked:
1Host
1 Solution
 
AndyCommented:
Remove style="display:none" the error is because the code is duplicating the styles. At least that's what Dreamweaver told me. :)

If you take all occurences of that out then the script works fine and everything appears as it should.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now