Re: Textarea handling in php ?



..oO(Jerry Stuckle)

Toby A Inkster wrote:
Jerry Stuckle wrote:
Toby A Inkster wrote:

"<br/>" is valid in HTML. It just doesn't mean what people think it
means. It is equivalent to "<br>&gt;" because of SGML shorttag rules.
Actually, it's not valid.

Actually it is:
http://examples.tobyinkster.co.uk/br/br


See the rest of my message - and the link to the W3C spec which shows it
is NOT valid.

<br/> means completely different things in HTML and XHTML. Following
SGML minimization rules the slash implicitly closes the start tag and
there's no end tag. The following > is just character data.

http://www.cs.tut.fi/~jkorpela/html/empty.html#why

You could replace the > with whatever you like: x<br/y is perfectly
valid HTML and should render as

x
y

but of course it won't in most browsers.

Just because the validator doesn't catch the error does not mean it's valid.

The validator doesn't catch it because in this case it is not an error.

Micha
.



Relevant Pages

  • Re: BUG in VB.NET XML comment engine?
    ... Aren't 'standards' grand:) ... > specifically included by the C# spec either. ... Even if the tag is semantically ... This ambiguity obviously does not ...
    (microsoft.public.dotnet.languages.vb)
  • Re: some mac questions: the marquee tag in html, screenshots from DVD player, and good freeware imag
    ... I have been using the tag to move a few images around the top ... Marquee isn't a valid HTML tag. ...
    (comp.sys.mac.apps)
  • Re: BUG in VB.NET XML comment engine?
    ... specifically included by the C# spec either. ... Even if the tag is semantically wrong, ... This ambiguity obviously does not prove ... | "The documentation generator must accept and process any tag that is valid ...
    (microsoft.public.dotnet.languages.vb)
  • Rep spec for tagged type
    ... I'm trying to create a rep spec for a tagged type and getting errors ... from GNAT that say `compoonent overlaps tag field of ...'. ... I gather this means that GNAT stores the tag for the type at the ...
    (comp.lang.ada)
  • Re: Form in one row of table
    ... But when I generate code like above Opera adds break line before table ... Also code like above is not valid HTML 4.01 Transitional ... When I delete tag from source everything is ok (but of course ... me to generate valid HTML 4.01 Transitional code. ...
    (alt.html)