Re: <option>



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/

.



Relevant Pages

  • Re: POS Printer
    ... printer These special codes are non-printable ... characters ... I see no reason to be concerned with it at all. ... I know that a POS printer has an internal buffer so just because we send ...
    (microsoft.public.vc.mfc)
  • Re: =?ISO-8859-1?Q?Soup=E7on_of_cedilles_and_aper=E7us?=
    ... Above that are the so-called "extended ASCII codes", ... neither of the non-7-bit-ASCII characters display. ... Unfortunately Mike does not have MIME enabled in his software, ... they are superior to the modern newsreaders. ...
    (alt.usage.english)
  • Re: ?? ??
    ... When the original ASCII standard was defined, ... When the control codes were defined, ... characters as and end-of-line, as it said in the official ignored standard. ... and an operating system requiring CR LF. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to get the plain text (without "||||||||||") from word ducment includes table?
    ... I have tried the Paragrph-By-Paragraph resolvent, ... I guess those additional marks might be defined ... cause in that those codes always be out ... >> number of characters retrieved from Range.Text doesnt equal to it that ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: [PHP] question regarding form filtering
    ... I use PCRE for filtering all the time. ... these valid characters" and not one that says "deny these invalid ... Well I have been going through various methods on filtering form data, ...
    (php.general)