Forum Moderators: open

Message Too Old, No Replies

Invalid code? Dreamweaver overwrites

Can anyone look at this code and see if they can fix it?

         

HostingDirectory

12:13 am on Mar 28, 2004 (gmt 0)

10+ Year Member



I have been using a script for a navigational menu.

The problem is that dreamweaver insists the below tag is invalid.


<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.

[edited by: Woz at 1:09 am (utc) on Mar. 28, 2004]
[edit reason] No URLs please, TOS#13 [/edit]

brdwlsh

7:03 am on Mar 29, 2004 (gmt 0)

10+ Year Member



dw probably sees two style tags as redundant and removes one.

see what happens if you put the display selector in the foldinglist property on the style sheet, and remove it from the inline tag.

PatomaS

11:24 am on Mar 29, 2004 (gmt 0)

10+ Year Member



In deed, that is the problem

you can't have more tha one style in each tag.

Bye