https://bugzilla.wikimedia.org/show_bug.cgi?id=27881
--- Comment #4 from Ryan Kaldari <[email protected]> 2011-03-05 23:32:37 UTC --- It looks like we do the same thing for the 'readable' property of pages. I don't think that using empty strings to indicate truth is a good idea (especially since empty strings are interpreted as false in both PHP and Javascript). I understand why it was built this way, since all the properties are universally set up as XML attributes (when in some cases they might make more sense as attribute values or full nodes). Unfortunately, this leaves our users with rather unintuitive data that requires more verbose code. If the resolution is WONTFIX, the return behavior of the property should at least be documented so that people know they have to test for whether or not the attribute is defined rather than testing for truth. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
