[Mono-dev] "Label2" in commit 92114

Juraj Skripsky js at hotfeet.ch
Wed Jan 2 13:41:08 EST 2008


Hi Igor,

I've noticed something strange in your latest commit:

+               private void WriteExpandoAttributes (HtmlTextWriter writer) {
+                       if (_expandoAttributes != null) {
+                               for (int i = 0; i < _expandoAttributes.Count; i++) {
+                                       RegisteredExpandoAttribute attr = _expandoAttributes [i];
+                                       if (HasBeenRendered (attr.Control))
+                                               WriteCallbackOutput (writer, expando, "document.getElementById('Label2')['" + attr.Name + "']", "\"" + attr.Value + "\"");
+                               }
+                       }
+               }

You're sending "document.getElementById('Label2')['" + attr.Name + "']"
to the html writer. Is this really correct or just a leftover from
testing?

- Juraj




More information about the Mono-devel-list mailing list