HTML5 and Tidy

  • Sjeef, 14th Feb 2012 12:25 am

    I'm busy to make a site in HTML5 and CSS3.
    After making the code and running Tidy it makes a change in the code
    It is putting after id="big" the code name="big".
    But validating this code, W3C says that the name attribute is obsolete.

    How can I instruct Tidy not to add name="big"?
    I couldn't find it in Options.

    HTML-Kit Version 1.0 (Build 292)
    OS: Windows XP Professional Version 5.1 (Build 2600: Service Pack 3)
    Components: IE 6.0.2900.0, COMCTL32 6.0, SHELL32 6.0.2900.0
    Memory: 1.916.764 KB out of 2.097.152 KB of physical memory available.

    Regards,
    Gerard Schaefers
    www.sjeef.eu

    • HTML-Kit Support, 15th Feb 2012 11:29 pm

      On 2/14/2012 12:25 AM, Sjeef wrote:

      I'm busy to make a site in HTML5 and CSS3.
      After making the code and running Tidy it makes a change in the code
      It is putting after id="big" the code name="big".
      But validating this code, W3C says that the name attribute is
      obsolete.

      How can I instruct Tidy not to add name="big"?
      I couldn't find it in Options.

      HTML-Kit Version 1.0 (Build 292)
      OS: Windows XP Professional Version 5.1 (Build 2600: Service Pack 3)
      Components: IE 6.0.2900.0, COMCTL32 6.0, SHELL32 6.0.2900.0
      Memory: 1.916.764 KB out of 2.097.152 KB of physical memory
      available.

      Regards,
      Gerard Schaefers
      www.sjeef.eu

      Hi Gerard,

      HTML Tidy is adding both name="" and id="" attributes to elements
      like

      <

      form> to stay backwards compatible, but you can disable it.

      HTML-Kit 292 Preferences dialog doesn't have an option to control this
      so I'm afraid you'd have to create a custom Tidy configuration as
      described on the following page:

      HTML Kit 292 how to: tidy_config

      Then add the following option to the end if your custom.htc :

       anchor-as-name: no
      

      Hope this helps.

      Chami

Advertisements