Closed
Bug 18784
Opened 26 years ago
Closed 26 years ago
[blocker]Selects created via the DOM do not work
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
VERIFIED
FIXED
M11
People
(Reporter: rods, Assigned: rods)
References
Details
Attachments
(1 file)
|
790 bytes,
text/html
|
Details |
See bug 16821 for the testcase
| Assignee | ||
Updated•26 years ago
|
Assignee: karnaze → rods
| Assignee | ||
Updated•26 years ago
|
Severity: normal → blocker
Target Milestone: M11
| Assignee | ||
Comment 1•26 years ago
|
||
assigned to M11 as a blocker.
| Assignee | ||
Comment 2•26 years ago
|
||
| Assignee | ||
Comment 3•26 years ago
|
||
Here is what needs to be done for M11:
This code needs to be added to the CreateElement method in the
nsHTMLDocument.cpp:
nsresult result;
nsCOMPtr<nsISelectElement> select = do_QueryInterface(content, &result);
if (NS_SUCCEEDED(result)) {
result = select->DoneAddingContent();
}
And :
nsHTMLSelectElement::DoneAddingContent()
needs to always returns NS_OK
| Assignee | ||
Comment 4•26 years ago
|
||
Here is the diff that fixes the XUL, I'll check this in tomorrow:
Index: nsXULDocument.cpp
===================================================================
RCS file: /cvsroot/mozilla/rdf/content/src/nsXULDocument.cpp,v
retrieving revision 1.188
diff -r1.188 nsXULDocument.cpp
117a118
> #include "nsISelectElement.h"
4739a4741,4745
> nsresult srv;
> nsCOMPtr<nsISelectElement> select = do_QueryInterface(element,
&srv);
> if (NS_SUCCEEDED(srv)) {
> srv = select->DoneAddingContent();
> }
| Assignee | ||
Comment 5•26 years ago
|
||
Here is the diff that fixes the XUL's selct:
Index: nsXULDocument.cpp
===================================================================
RCS file: /cvsroot/mozilla/rdf/content/src/nsXULDocument.cpp,v
retrieving revision 1.188
diff -r1.188 nsXULDocument.cpp
117a118
> #include "nsISelectElement.h"
4739a4741,4745
> nsresult srv;
> nsCOMPtr<nsISelectElement> select = do_QueryInterface(element,
&srv);
> if (NS_SUCCEEDED(srv)) {
> srv = select->DoneAddingContent();
> }
| Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 6•26 years ago
|
||
Just checked in the fixes.
You need to log in
before you can comment on or make changes to this bug.
Description
•