[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 96187] javascript (DOM exception 7) error returns a blank page
From: David Faure <faure () kde ! org>
Date: 2005-01-31 13:49:42
Message-ID: 20050131134942.22717.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=96187
------- Additional Comments From faure kde org 2005-01-31 14:49 -------
The above code calls getElementById() with an empty string (seccion is empty),
and this apparently returns the <html> element. Trying to set the innerHTML to \
"<font>...</font>" raises an exception (<html> must have a <body>...)
Mozilla also barfs on that testcase, saying "Error: document.getElementById(seccion) \
has no properties".
Obviously the page appears on Mozilla, I guess this is because it detects the error \
*before* removing all children of the <html> element, whereas \
HTMLElementImpl::setInnerHTML does a removeChildren() first. Will fix.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic