none
reformat html problem RRS feed

  • Question

  • I am having problems with the reformat html option and <ul> lists. I start with valid html, select the reformat and it inserts spurious </li> elements through the list. I have a simple sample here. It inserts an extra </li> after the embedded comment. I have other html without comments where it embeds the extra </li>'s but this seems to be a simple example. I just applied service pack 2 and it's the same problem.

    [before html]

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>hotels</title>
    </head>

    <body>

    <ul class="level_0">
     <li>
     <div class="submenu">
      hotels</div>
     <ul class="level_1" style="visibility: visible; width: 720px; display: none;">
      <li>
      <div class="submenu">
       Quality Hotel</div>
      <ul class="level_2" style="display: none; visibility: visible; width: 720px;">
       <li>
       <a href="http://heartofniagara.dev.webcko.com/page/quality_inn_meetings_events" style="" title="Quality Inn Meetings/Events">
       Meetings/Events</a> <span class="delim">|</span> </li>
       <!--4-->
       <li>
       <a href="http://heartofniagara.dev.webcko.com/page/quality_inn_rooms_amenities_" style="" title="Quality Inn Rooms/Amenities ">
       Rooms/Amenities </a></li>
      </ul>
      </li>
     </ul>
     </li>
    </ul>

    </body>

    </html>

    [after html, extra </li> bolded & underlined]

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>hotels</title>
    </head>

    <body>

    <ul class="level_0">
     <li>
     <div class="submenu">
      hotels</div>
     <ul class="level_1" style="visibility: visible; width: 720px; display: none;">
      <li>
      <div class="submenu">
       Quality Hotel</div>
      <ul class="level_2" style="display: none; visibility: visible; width: 720px;">
       <li>
       <a href="http://heartofniagara.dev.webcko.com/page/quality_inn_meetings_events" style="" title="Quality Inn Meetings/Events">
       Meetings/Events</a> <span class="delim">|</span> </li>
       <!--4--></li>
       <li>
       <a href="http://heartofniagara.dev.webcko.com/page/quality_inn_rooms_amenities_" style="" title="Quality Inn Rooms/Amenities ">
       Rooms/Amenities </a></li>
      </ul>
      </li>
     </ul>
     </li>
    </ul>

    </body>

    </html>

    Sunday, April 11, 2010 7:59 PM