I have tried to understand why input field is valid outside form tag.
I seems to work outside form if e.g. input tag is inserted inside div tag.
I tried to read http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
but didn't find any solution.
Can anyone clearify were input is accepted if it's not inside form?
Cheers,
Re: xhtml and input tag outside form
am 23.01.2008 10:43:23 von Toby A Inkster
Zone wrote:
> I have tried to understand why input field is valid outside form tag. I
> seems to work outside form if e.g. input tag is inserted inside div tag.
(and
Re: xhtml and input tag outside form
am 23.01.2008 11:08:43 von Harlan Messinger
Zone wrote:
> Hello,
>
> I have tried to understand why input field is valid outside form tag.
> I seems to work outside form if e.g. input tag is inserted inside div tag.
>
> I tried to read http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
> but didn't find any solution.
>
> Can anyone clearify were input is accepted if it's not inside form?
Besides what Toby said about why it's valid (which is correct) it's also
reasonable if you're using controls to receive user input that is going
to be used on the client side rather than for submitting to a server. An
example would be a client-side measurement or currency converter coded
in Javascript. Functionally speaking there's no need for a form since
nothing is being submitted to the server.
Re: xhtml and input tag outside form
am 23.01.2008 12:13:30 von jkorpela
Scripsit Toby A Inkster:
> (and
Re: xhtml and input tag outside form
am 23.01.2008 16:25:07 von Zone
"Jukka K. Korpela" wrote in message
news:1jFlj.285172$8v3.64083@reader1.news.saunalahti.fi...
> Scripsit Toby A Inkster:
>
>> (and
Re: xhtml and input tag outside form
am 23.01.2008 16:50:05 von jkorpela
Scripsit Zone:
> "Jukka K. Korpela" wrote in message
> news:1jFlj.285172$8v3.64083@reader1.news.saunalahti.fi...
....
>> --
>> Jukka K. Korpela ("Yucca")
>> http://www.cs.tut.fi/~jkorpela/
A comprehensive quote, down to a sig, is the usual sign of lack of
comprehensive reading. Please keep using that style as long as you
remain clueless. Using XHTML in web authoring isn't a _sure_ sign of
cluelessness, you know, though often a useful hint.
> Can anyone explain where are the code in
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
> that tells input tag can be outside of form tag but it must be e.g.
> inside div tag.
Is that a serious question? It looks like one, but other symptoms
suggest the opposite,
Anyway, here are some crucial declarations from it:
Now, how can you have an element inside the body? Hint: check
the definition of %misc to see that there's nothing there that allows
. Then work out the declarations for the block-level elements
like
and
to see that is allowed there
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Re: xhtml and input tag outside form
am 23.01.2008 21:15:27 von dorayme
In article ,
"Jukka K. Korpela" wrote:
> Scripsit Zone:
>
> > "Jukka K. Korpela" wrote in message
> > news:1jFlj.285172$8v3.64083@reader1.news.saunalahti.fi...
> ...
> >> --
> >> Jukka K. Korpela ("Yucca")
> >> http://www.cs.tut.fi/~jkorpela/
>
> A comprehensive quote, down to a sig, is the usual sign of lack of
> comprehensive reading. Please keep using that style as long as you
> remain clueless. Using XHTML in web authoring isn't a _sure_ sign of
> cluelessness, you know, though often a useful hint.
>
> > Can anyone explain where are the code in
> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
> > that tells input tag can be outside of form tag but it must be e.g.
> > inside div tag.
>
> Is that a serious question? It looks like one, but other symptoms
> suggest the opposite,
>
> Anyway, here are some crucial declarations from it:
>
>
> "p | %heading; | div | %lists; | %blocktext; | fieldset | table">
>
>
>
>
>
> Now, how can you have an element inside the body? Hint: check
> the definition of %misc to see that there's nothing there that allows
> . Then work out the declarations for the block-level elements
> like
and
to see that is allowed there
It's such a damn shame or a sight to behold (I rather fancy the
latter, there being too many damn shames in this world already)
that you can be so informative (the point about the %misc being
something that perhaps only you and 4 others on the planet would
have spotted *quickly*) yet give all this personally insulting
preamble babble.
How is it that something like me from a quite different planet
can see that the OP is quite sincere and serious and you can't?
Perhaps you need to get out of Iceland more often. Perhaps Bobby
Fisher's late presence has had an unsettling effect deep down for
years?
--
dorayme
Re: xhtml and input tag outside form
am 23.01.2008 22:32:50 von jkorpela
Scripsit dorayme:
[ quoting something that he or she has almost nothing to say about, and
no positive contribution ]
> It's such a damn shame or a sight
Excuse me while I yawn.
> How is it that something like me from a quite different planet
> can see that the OP is quite sincere and serious and you can't?
If you quote like a moron, stay tuned to being treated like one.
Sometimes you might get away with it, but that's not a reason to act
moronically.
--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/
Re: xhtml and input tag outside form
am 23.01.2008 22:54:30 von Harlan Messinger
Jukka K. Korpela wrote:
> Scripsit dorayme:
>
> [ quoting something that he or she has almost nothing to say about, and
> no positive contribution ]
>
>> It's such a damn shame or a sight
>
> Excuse me while I yawn.
>
>> How is it that something like me from a quite different planet
>> can see that the OP is quite sincere and serious and you can't?
>
> If you quote like a moron, stay tuned to being treated like one.
> Sometimes you might get away with it, but that's not a reason to act
> moronically.
>
How about people who act like venom-spitting sociopaths? How should they
expect to be treated?
Re: xhtml and input tag outside form
am 23.01.2008 23:36:56 von Toby A Inkster
dorayme wrote:
> Perhaps you need to get out of Iceland more often.
Finland, Shirley?
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 24 days, 9:49.]
CSS to HTML Compiler
http://tobyinkster.co.uk/blog/2008/01/22/css-compile/
Re: xhtml and input tag outside form
am 24.01.2008 01:09:32 von dorayme
In article <85sk65-0k9.ln1@ophelia.g5n.co.uk>,
Toby A Inkster wrote:
> dorayme wrote:
>
> > Perhaps you need to get out of Iceland more often.
>
> Finland, Shirley?
Mrs Goldberg is having a drink at the bar of her regular club
when an oriental gentleman accidentally knocks over her drink.
"You damned Japanese!" yells Mrs Goldberg. "First you gave us
Pearl Harbour, now this!"
"Hold on a minute. I'm not Japanese, I'm Chinese."
"Chinese, Japanese â so what's in a name?"
"And you Jews," replies the Chinese, "you can talk! You sank the
Titanic!"
"We sank what?" asked the astonished Mrs Goldberg, "The Titanic
was sunk by an iceberg!"