Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168949 - konqueror 3.5.5 does not support <textarea name="foo" />
Summary: konqueror 3.5.5 does not support <textarea name="foo" />
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 23:17 UTC by Damien
Modified: 2007-03-16 23:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damien 2007-03-01 23:17:13 UTC
When passed xhtml below Konqueror does not render the submit button.  If the <textarea> is closed then followed by </textarea> it renders correctly.  I think that both should be valid but Konqueror does not seem to like the version defined below while either should be valid.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>Test Page</title></head>
<body>
<form action="./index.html">
<textarea cols="40" rows="8" name="bigtext" />
<input type="submit" name="submit" />
</form>
</body>
</html>



Reproducible: Always

Steps to Reproduce:
1.open the html in the description with konqueror 3.5.5
2.seems to be ok if use separate closing tag but either should be legal?
3.

Actual Results:  
In this case no submit button is rendered by Konqueror.  I am guessing that it stops processing the form structure because it is seeking ahead for a </textarea>.

Expected Results:  
The submit button should be rendered.

Not a major issue but if it is a standards issue it would be good to make Konqueror behave as expected if as I suspect it should expect a single tag textarea definition.
Comment 1 Brian S. Stephan 2007-03-16 23:03:07 UTC
This is not a bug, your HTML is wrong.

http://www.w3.org/TR/xhtml1/#C_2 writes:

"C.2. Empty Elements
Include a space before the trailing / and > of empty elements, e.g. <br />, <hr /> and <img src="karen.jpg" alt="Karen" />. Also, use the minimized tag syntax for empty elements, e.g. <br />, as the alternative syntax <br></br> allowed by XML gives uncertain results in many existing user agents.

C.3. Element Minimization and Empty Element Content
Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the minimized form (e.g. use  <p> </p> and not <p />)."

And http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_XHTML-1.0-Strict shows us that TEXTAREA is not EMPTY.
Comment 2 Brian S. Stephan 2007-03-16 23:26:20 UTC
(In reply to comment #1)
> This is not a bug, your HTML is wrong.
> 
> http://www.w3.org/TR/xhtml1/#C_2 writes:

Upon a reread and rethink, <textarea ... /> isn't wrong, but the W3 is essentially saying "if you do [what you did above], don't expect everyone to get it right."

I guess it could go upstream to KHTML.
Comment 3 Jan Kundrát (RETIRED) gentoo-dev 2007-03-16 23:31:41 UTC
The attached snippet is not valid XML document. You have to put <p> inside the <form> element, then it's valid, yet Konqueror can't render it properly, which is clearly its bug.

We can't do much about this issue, though, so I suggest filing a bug at the kde.org bugzilla. Thanks for your report anyway and to bssteph for some hints.