Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-873 Minor XHTML 1.0 Strict compliance issues
  3. TAPESTRY-1231

org.apache.tapestry.form.ImageSubmit renders invalid XHTML attribute 'border="0"'

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.2, 4.1.1
    • 4.1.2
    • Framework
    • None

    Description

      ImageSubmit components renders invalid XHTML attribute 'border="0"' for <input type="image" ...

      Index: ImageSubmit.java
      ===================================================================
      — ImageSubmit.java (revision 496491)
      +++ ImageSubmit.java (working copy)
      @@ -69,9 +69,10 @@

      // NN4 places a border unless you tell it otherwise.
      // IE ignores the border attribute and never shows a border.
      +
      + // 'border' is not XHTML compliant
      + // writer.attribute("border", 0);

      • writer.attribute("border", 0);
        -
        writer.attribute("src", imageURL);

      renderIdAttribute(writer, cycle);

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            davidjdavis David Davis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: