Tag collapse

  •  03-03-2009, 6:36 AM

    Tag collapse

    Hi,
     
    Problems on html clean status:
     
    1) A over A over A over A. If user use multiple time anchor a chain of A is implemented. Is possible to deny that A is into a A?
    2) Div into A. This is not xhtml comliance
    3) Span over span over Span. Look this html created by a user with Cutesoft Editor working day by day. Is not possible to collapse all  span [but also div or other] in a single tag styled?
     
    <td class="cItalico" style="border-right: #000 1px solid; padding-right: 0px; border-top: #000 1px solid; padding-left: 0px; font-size: 24pt; padding-bottom: 5px; border-left: #000 1px solid; width: 404px; color: #0000ff; padding-top: 5px; border-bottom: #000 1px solid; font-family: Comic Sans MS; height: 78px" align="center">
    <span style="color: #ff0000">
                  <span style="color: #ff0000">
    <span style="font-family: Comic Sans MS">
    <strong>
    <span style="font-family: Arial">
    <span style="font-size: 18pt; font-family: Comic Sans MS">
    <span style="color: #ff0000">
    <span style="color: #ff0000">
    <span style="font-family: Comic Sans MS">
    <strong style="font-size: 18pt">
                                    <span style="color: #ff6600">
    <span style="color: #ff6600">
    <span style="font-size: 14pt">
    <span style="font-size: 18pt">
    <a href="http://www.bottegadelcoltello.com/en/contents/peppos.htm">
    <span style="color: #ff0000">
    <span style="color: #ff0000">
    <span style="font-family: Comic Sans MS">
    <strong>
                                                      <span style="font-family: Arial">
    <span style="font-size: 18pt; font-family: Comic Sans MS">
    <span style="color: #ff0000">
    <span style="color: #ff0000">
    <span style="font-family: Comic Sans MS">
    <strong style="font-size: 18pt">
    <span style="color: #ff6600">
    <span style="color: #ff6600">
    <span style="font-size: 14pt">
                                                                        <span style="font-size: 18pt">FULL DAMASCUS DAGGER</span>
    </span>
    </span>
    </span>
    </strong>
    </span>
    </span>
    </span>
                                                        </span>
    </span>
    </strong>
    </span>
    </span>
    </span>
    </a>
    </span> </span>
    </span>
                                    </span>
    </strong>
    </span>
    </span>
    </span>
    </span>
    </span>
    </strong>
    </span>
                  </span>
    </span>
    </td>
     
    Is obviously equals to
     
    <td class="cItalico" style="border-right: #000 1px solid; padding-right: 0px; 
    border-top: #000 1px solid; padding-left: 0px; font-size: 24pt; padding-bottom: 5px;
    border-left: #000 1px solid; width: 404px; color: #0000ff; padding-top: 5px;
    border-bottom: #000 1px solid; font-family: Comic Sans MS; height: 78px;
    font-size: 18pt; color: #ff6600; align="center">
    <a href="http://www.bottegadelcoltello.com/en/contents/peppos.htm">FULL DAMASCUS DAGGER</a>

    </td>

View Complete Thread