Branch: Tag:

2007-09-05

2007-09-05 14:47:09 by Mathias Södermark <m.sodermark@gmail.com>

Removed the 'border="0"' attribute and replaced it with 'style="border: none;"'
since the Border attribute is deprecated in xhtml.

Reported in ticket RT#10004.

Rev: server/modules/graphics/graphic_text.pike:1.303

1:   // This is a roxen module. Copyright ¬© 1996 - 2004, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.302 2006/09/13 14:48:17 stewa Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.303 2007/09/05 14:47:09 mathias Exp $";      #include <module.h>   inherit "module";
1126:       int xml=!m_delete(arg, "noxml");    -  if(!arg->border) arg->border="0"; +  // No border should be used for <img>. Force CSS declaration to avoid +  // borders when gtext is clickable. +  m_delete(arg, "border"); +  arg->style = "border: none;" + (arg->style || "");       int no_draw = !id->misc->generate_images;    if(arg->split)