|
|
|
| Помогите разобраться, в чём ошибка.
Браузеру скрипт выдаёт такой код:
<input type="text" name="text" value=""/> <anchor>OK<go method="post" href="http://address/script.php"><postfield name="text" value="$(text)"/></go></anchor><br/>
|
Валидатор говорит:
Line 5, Column 870: document type does not allow
element "input" here
… type="text" name="text" value=""/> <anchor>OK<go
method="post" href="http…
The element named above was found in a context where it is
not allowed. This could mean that you have incorrectly
nested elements -- such as a "style" element in the "body"
section instead of inside "head" -- or two elements that
overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax
in HTML documents. Due to HTML's rules of implicitly closed
elements, this error can create cascading effects. For
instance, using XHTML's "self-closing" tags for "meta" and
"link" in the "head" section of a HTML document may cause
the parser to infer the end of the "head" section and the
beginning of the "body" section (where "link" and "meta"
are not allowed; hence the reported error).
|
| |
|
|
|
|
|
|
|
для: Maxam
(28.03.2010 в 12:45)
| | Он "хочет" чтобы вы <input /> каким-нибудь блочным символом окружили вроде <div></div> или <p></p> | |
|
|
|
|
|
|
|
для: cheops
(28.03.2010 в 20:58)
| | Глупый, и правда. Вообще его не понимаю. | |
|
|
|