W3C home > Mailing lists > Public > public-i18n-bidi@w3.org > July to September 2010

Re: HTML attribute with no value

From: Najib Tounsi <ntounsi@gmail.com>
Date: Sun, 19 Sep 2010 21:16:48 +0000
Message-ID: <4C967DC0.8060200@emi.ac.ma>
To: "Aharon (Vladimir) Lanin" <aharon@google.com>
CC: Tab Atkins <tabatkins@google.com>, public-i18n-bidi@w3.org
Aharon (Vladimir) Lanin wrote:
>  In the f2f, we said:
>  ubi syntax is ubi=”ubi”|””|”off”. The “ubi” and empty string values
>  are equivalent, and mean that bidi isolation is on for the element.
>  I am confused about why we needed two values meaning "on", and if so,
>  why neither one of them is named "on".


>  The crux of my question is what, exactly, does the HTML spec say
>  about an attributes with no value, e.g. <span foo>? Is it always
>  equivalent to <span foo=foo>, or to <span foo="">, or something else?

I would prefer ubi as boolean attribute. <span ubi> equivalent to <span 
ubi="ubi"> (or "on" (or "true")), otherwise, it is "off" (or "false").

It seems that HTML 4.0 permit this.


>  If <span foo> is equivalent to <span foo=foo>, I do not see why we
>  need an empty string value.
>  If, on the other hand, <span foo> is equivalent to <span foo="">, I
>  understand why we need an empty value as well as an equivalent
>  non-empty value, but I do not understand why the latter has to be the
>  meaningless "ubi". I would prefer ubi=”on”|””|”off”.
>  Aharon
Received on Sunday, 19 September 2010 21:10:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:24:37 UTC