Tidy message prob

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wilhelm Kutting

    Tidy message prob

    hi,
    i like to solve a code-prob:

    tidy is bitching about
    <...> proprietary attribute "type"
    <...> lacks "action" attribute

    how can i make this nice?

    this is my code
    <form name="land" type="text/javascript">
    <select name="land:" onChange="P7_Ju mpMenu(this,0)" >
    <option value="" selected>Please choose:</option>
  • Spartanicus

    #2
    Re: Tidy message prob

    Wilhelm Kutting <wkutting@arcor .de> wrote:
    [color=blue]
    >i like to solve a code-prob:
    >
    >tidy[/color]

    First use a validator like http://validator.w3.org/ to check your code.

    After it validates you can then see what Tidy reports and if there is
    any value in that (there may not be).
    [color=blue]
    > is bitching about
    ><...> proprietary attribute "type"
    ><...> lacks "action" attribute
    >
    >how can i make this nice?
    >
    >this is my code
    > <form name="land" type="text/javascript">[/color]

    Forms are for gathering user input and they require server side
    processing.
    [color=blue]
    > <select name="land:" onChange="P7_Ju mpMenu(this,0)" >
    > <option value="" selected>Please choose:</option>[/color]

    Looks like you are abusing a form and javascript to create some sort of
    navigation, stop doing that. Use links.

    --
    Spartanicus

    Comment

    • dingbat@codesmiths.com

      #3
      Re: Tidy message prob

      Wilhelm Kutting wrote:
      [color=blue]
      > i like to solve a code-prob:[/color]

      Code problem. Not a Tidy problem.
      [color=blue]
      > tidy is bitching about [on <form>]
      > <...> proprietary attribute "type"
      > <...> lacks "action" attribute[/color]

      In HTML, <form> doesn't have a type attribute and requires an action
      attribute.

      [color=blue]
      > how can i make this nice?[/color]

      Write valid HTML. Go to the W3C site and learn to read the DTD.

      Comment

      Working...