Solved

Invalid tag? Dreamweaver keeps overwritting!

Posted on 2004-03-27
3
271 Views
Last Modified: 2010-04-06
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
Comment
Question by:1Host
3 Comments
 
LVL 6

Accepted Solution

by:
Reapz earned 500 total points
ID: 10698113
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Forbidden errors 5 152
Specific format 21 207
Download a website to hdd 2 81
Where does legacy ASP.NET initialize language? 2 26
Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question