Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-10-19 16:42:03

zwhite
New member
Registered: 2006-10-19
Posts: 2

Your Document is not well formed, check Javascript console for details

I keep getting that message trying to edit existing pages for our website. I can't tell what's causing the problems. I'm a new user of Xinha, so this is a fresh installation based on yesterday's nightly. I've also tried it with today's nightly and get the same thing.

I ran the pages in question through tidy, and they're now well formed xhtml documents, but I still get the error. These entries appear in the javascript console:

Error: Unknown property 'filter'.  Declaration dropped.
Source File: https://<hostname>/xinha/htmlarea.css
Line: 50

Error: [Exception... "'Permission denied to get property XULElement.accessKey' when calling method: [nsIDOMXULLabelElement::accessKey]"  nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"  location: "JS frame :: https://<hostname>/xinha/htmlarea.js :: anonymous :: line 5694"  data: no]
Source File: https://<hostname>/xinha/htmlarea.js
Line: 5694

Error: editor._iframe.contentWindow.document.body has no properties
Source File: https://<hostname>/xinha/htmlarea.js
Line: 5695

Anyone have any ideas on how I can figure out what's going on?

Offline

#2 2006-10-19 23:05:17

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Your Document is not well formed, check Javascript console for details

Can you post some sample content that causes the error? I've seen this happen when there are references to JavaScript objects that are not found, such as when a js file would normally link to the content, but is not linked while the content is in the editor.

Offline

#3 2006-10-19 23:49:20

mharrisonline
Xinha Administrator
From: Denver, Colorado
Registered: 2005-04-11
Posts: 110
Website

Re: Your Document is not well formed, check Javascript console for details

Of course, you can always stop the well-meaning error message from appearing by catching the error. See http://xinha.python-hosting.com/ticket/442 ticket #442 .

I had to do that for the reason I mentioned until I figured out how to disable JavaScript while it was in the editor. The error was a real problem for me because I use Xinha in full page mode, and the error makes you lose everything but what was inside the body.

Offline

#4 2006-10-20 16:40:08

zwhite
New member
Registered: 2006-10-19
Posts: 2

Re: Your Document is not well formed, check Javascript console for details

mharrisonline wrote:

Can you post some sample content that causes the error? I've seen this happen when there are references to JavaScript objects that are not found, such as when a js file would normally link to the content, but is not linked while the content is in the editor.

The page is question is actually up right now at http://www.polestar.com/home/index.php. I'm not responsible for the page design, I'm just responsible for making sure our marketing person can edit it.

It's probably the JavaScript thing. I'm busy with other duties today, but I'll give it another look on monday. After reading #442 I think my problem is javascript related.

Offline

Board footer

Powered by FluxBB