Loading ...
Sorry, an error occurred while loading the content.

1895Re: False-positive validation errors

Expand Messages
  • Edward O'Connor
    Aug 19, 2008
      lucas gonze wrote:

      > Labels and inputs in forms are incorrectly flagged as invalid. In this
      > valid sample document, the label and input will be considered errors
      > and will cause nxml-mode to do stop doing useful validation:
      > <!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><title></title></head>
      > <body>
      > <form action="" method="get">
      > <label for="inputname">Label for field: </label>
      > <input type="text" name="inputname" id="inputname" />
      > </form>
      > </body>
      > </html>

      Correct me if I'm wrong, but I think nxml is correct: the above is
      invalid HTML 4.01. <form> requires block children; your form needs a
      <p>, <div>, or (better yet) a <fieldset> to contain your <label> and

    • Show all 22 messages in this topic