Re: Textarea handling in php ?
- From: Michael Fesser <netizen@xxxxxx>
- Date: Wed, 19 Mar 2008 20:57:08 +0100
..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 itActually, it's not valid.
means. It is equivalent to "<br>>" because of SGML shorttag rules.
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
.
- References:
- Textarea handling in php ?
- From: Tony B
- Re: Textarea handling in php ?
- From: Mason Barge
- Re: Textarea handling in php ?
- From: Tony B
- Re: Textarea handling in php ?
- From: Captain Paralytic
- Re: Textarea handling in php ?
- From: Jerry Stuckle
- Re: Textarea handling in php ?
- From: Toby A Inkster
- Re: Textarea handling in php ?
- From: Jerry Stuckle
- Re: Textarea handling in php ?
- From: Toby A Inkster
- Re: Textarea handling in php ?
- From: Jerry Stuckle
- Textarea handling in php ?
- Prev by Date: Re: Real begginer
- Next by Date: Re: Proxying a FLV file
- Previous by thread: Re: Textarea handling in php ?
- Next by thread: Re: Textarea handling in php ?
- Index(es):
Relevant Pages
|