Invalid code when inserting an <IMG> with File Explore

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Invalid code when inserting an <IMG> with File Explore

Postby Bendis » Mon Jun 20, 2005 2:48 am

Hello Karlis,

ok, my prefered doctype is XHTML 1.0 Transitional: When i add an image with drag & drop from the File Explorer, i get:

<img src="images/test.gif" width="10" height="7" border="0">


When i check this page in the W3C validator, i get a message:

You may have neglected to close a tag, or perhaps you meant to "self-close" a tag; that is, ending it with "/>" instead of ">".

So, HTMLPad should close an IMG tag with "/>".

When i insert an <IMG> tag manually with auto complete, the tag is closed correctly.

Oh, and i don't need the "border="0"" because i define this trough CSS, so i don't mind if you would remove this from the code i get via drag & drop.
Bendis
 
Posts: 35
Joined: Mon Jun 06, 2005 1:10 pm

Postby Karlis » Sun Jun 26, 2005 1:17 pm

XHTML support for File Explorer image insertion was aded in one of the latest updates. It is available in current version.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Karlis
Site Admin
 
Posts: 3601
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe

Postby honig » Mon Nov 21, 2005 1:02 pm

Hallo Karlis,
i have the same problem. I use WeBuilder 2005 6.3.0.58 and XHTML 1.0 Strict.
If i put a image with drag & drop form the File Explorer i get this
<img src="image/test.png" width="30" height="25" border="0">

and i would like to have this (if possible):
<img src="image/test.png" width="30" height="25" alt="" />

End-Tag and alt-attrib are missed, border-attrib not needed (for me).
Is there any way to change it?
User avatar
honig
 
Posts: 11
Joined: Mon Nov 21, 2005 12:37 pm

Postby Karlis » Mon Nov 21, 2005 9:57 pm

honig,

Thanks, indeed, dragging is not yet fixed. This will be corrected in the next release.
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Karlis
Site Admin
 
Posts: 3601
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 14 guests

cron