Rationale:
The possibility of an Ur/Web application generating invalid XHTML ( such as
empty lists ) has come up on this list before ... in cases such as list
nesting the programmer can produce code that does not do that. But the image
element requires an alt attribute and currently Ur/Web does not allow one.
The programmer cannot both use images and avoid invalid XHTML.
Adding an optional alt attribute allows the programmer the choice.
# HG changeset patch
# User Karn Kallio <kkallio@eka>
# Date 1295902378 16200
# Node ID b3aa155f6aac1c4e6db658b001798ed783ab6fb2
# Parent 291054c0113b0804111cab033711e176962faa91
Allow the programmer to include alt attribute on images.
diff -r 291054c0113b -r b3aa155f6aac lib/ur/basis.urs
--- a/lib/ur/basis.urs Mon Jan 24 10:42:57 2011 -0430
+++ b/lib/ur/basis.urs Mon Jan 24 16:22:58 2011 -0430
@@ -704,7 +704,7 @@
val a : bodyTag ([Link = transaction page, Href = url] ++ boxAttrs)
-val img : bodyTag ([Src = url, Width = int, Height = int,
+val img : bodyTag ([Alt = string, Src = url, Width = int, Height = int,
Onabort = transaction unit, Onerror = transaction unit,
Onload = transaction unit] ++ boxAttrs)
_______________________________________________
Ur mailing list
[email protected]
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur