Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2001

    Invalid code? Dreamweaver overwrites

    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.

    If you need to see the full script i am using, it is located at -

  2. #2
    Join Date
    Mar 2004
    1. open up dreamweaver
    2. copy the html
    3. go into notepad (the real mans tool)
    4. paste it into notepad
    5. change:
    <ul id="foldinglist" style="display:none">


    <ul id="foldinglist" style="display:none" style=&{head};>.

    6. save it as whatever.htm
    7. its done

    BTW- i dont know if this is an error or not, but in:
    <ul id="foldinglist" style="display:none" style=&{head};>.
    is there suposed to be a period after the ">"?
    Thats what might be wrong.

  3. #3
    Join Date
    Jul 2001
    I cannot do it in notepad... i will be placing the menu on virtually all pages of my site.. so whenever i update my site with dreamweaver it will overwrite the code.

    If i turn off the overwriting element in dreamweaver then in future cases of invalid html.. i will not be able to see.

  4. #4
    Join Date
    Feb 2004
    FTL on the Information Super Highway
    (Not knowing what "&{head};" is ) ... how about this:

    <ul id="foldinglist" style="display:none; &{head};">
    Serial Beggar
    Hate Your Family? Have No Friends? Make Me Your Beneficiary!

  5. #5
    in dreamweaver there is code rewriting option or something like that. you need to disable it.

  6. #6
    Change to expert mode

    <ul id="foldinglist" style="display:none" style=&{head};>
    First style, you are not ending it and then in the second ending it un necessarily, try....

    <ul id="foldinglist" style="display:none;" style=&{head}>
    Web hosting done right
    ██ Shared, Reseller and Dedicated web hosting
    An Easy Web Presence Company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts