img border attribute not valid xhtml 1.1? (3 posts)

  1. Quantum
    Posted 12 years ago #

    Am I correct in the assumption that the border attribute for image tags is not valid xhtml 1.1?
    If this is the case why does wordpress add it when you paste code from an uploaded image?
    I was under the impression that wordpress was xhtml 1.1 compliant.

  2. lars
    Posted 12 years ago #

    Your assumption seems to be correct, see:
    XHTML Image Module.
    Since the border is presentational, it should be removed with CSS:
    img {
    I haven't tried WordPress's image upload function though, so can't say anything about that.

  3. Mike Little
    Posted 12 years ago #

    Hi Quantum/Lars,
    I have now fixed this in CVS. I remvoed the border from the img tag generated on file upload, and I also added a default style for image anchors to turn off borders.
    a img { border : none; }

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.