{
}
- [MonoTODO ("need to validate input strings?")]
[DefaultValue ("")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
[WebSysDescription("")]
return (align);
}
set {
- /* Validate: left, center, right, top,
- * middle, bottom?
- */
if (value == null) {
Attributes.Remove ("align");
} else {
[WebSysDescription("")]
[WebCategory("Behavior")]
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+#if NET_2_0
+ [UrlProperty]
+#endif
public string Src
{
get {
protected override void RenderAttributes (HtmlTextWriter w)
{
PreProcessRelativeReference (w, "src");
+
+ /* MS does not seem to render the src attribute if it
+ * is empty. Firefox, at least, will fetch the current
+ * page as the src="" if other img attributes exist.
+ */
+ string src = Attributes["src"];
+ if (src == null || src.Length == 0)
+ Attributes.Remove ("src");
+
base.RenderAttributes (w);
/* MS closes the HTML element at the end of