Solved

Invalid tag? Dreamweaver keeps overwritting!

Posted on 2004-03-27
3
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
Andy 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

726 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