PDA

View Full Version : Re: <option>


Jukka K. Korpela
05-13-2007, 09:56 PM
Scripsit Jonathan N. Little:

>> non-breaking space is not the same as a space??
>
> a space is "breakable" and and a non-breaking is not.

They are two distinct characters, though in Unicode, the no-break space
U+00A0 is compatibility equivalent to <noBreak> U+0020 space. Thus, in
principle, the main difference is in line breaking properties. In practice,
other differences can be more important, such as special treatment of U+00A0
as table cell content by web browsers.

Technically, when appearing in an <option> element, the difference of the
codes of the characters is important, since it's the code that is sent as
part of the form data. The rest depends on what the form handler does with
the data.

But what could the difference matter when the character is the sole content
of an <option> element, and why would an author use such a degenerated
element? I'm afraid the OP is getting farther from his original problem and
potentially generating new problems. Explaining the _real_ problem might be
a good start.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/