Closed
Bug 190665
Opened 23 years ago
Closed 23 years ago
DOM style events not working when mime type changed to text/xml from text/html
Categories
(Core :: DOM: CSS Object Model, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 133827
People
(Reporter: joelbeach, Assigned: jst)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021207 Phoenix/0.5
http://demandred:10000/mozilla-bugs/XHTML-DOMBug/addFormHTML.jsp contains a page
sent as text/html. In that page, the "Hide Menu" and "Show Instruction" links do
what they are supposed to do - make various elements visible/invisible.
At http://demandred:10000/mozilla-bugs/XHTML-DOMBug/addFormXHTML.jsp, the same
page sent with a different mime type gives incorrect results.
Reproducible: Always
Steps to Reproduce:
1. Go to At http://demandred:10000/mozilla-bugs/XHTML-DOMBug/addFormXHTML.jsp
2. Click on "Show Instructions" link or "Hide Menu" link.
3. Observe behaviour
Actual Results:
Link itself disappears
Expected Results:
ID'd element should become invisible via the DOM-style interface.
Comment 1•23 years ago
|
||
How about a usable link that includes the full domain name? ;)
Are there any errors in the JS console?
| Reporter | ||
Comment 2•23 years ago
|
||
Sorry...the two full URLS are as follows:
XHTML Page (sent as text/html):
http://demandred.dynu.com:10000/mozilla-bugs/XHTML-DOMBug/addFormHTML.jsp
XHTML Page (sent as text/xml):
http://demandred.dynu.com:10000/mozilla-bugs/XHTML-DOMBug/addFormXHTML.jsp
There are no console warnings for the HTML version. For the XML version, the
following messages are displayed.
(for the "Hide Menu" link)
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLElement.innerHTML]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
http://demandred.dynu.com:10000/mozilla-bugs/js/stdLib.js :: toggleVisibility ::
line 47" data: no]
(for the "Show Instructions link)
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLElement.innerHTML]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
http://demandred.dynu.com:10000/mozilla-bugs/js/stdLib.js :: toggleVisibility ::
line 31" data: no]
Comment 3•23 years ago
|
||
innerHTML is not supported in XML.
Looking at your code, you seem to be using visibility instead of display and
this forces you to muck with the markup to make the size of the box change...
just using display:none instead of visibility:hidden would help here.
*** This bug has been marked as a duplicate of 133827 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•