[Developers] Mjt Help -- Please...
Kendra Kuhl
kendra.kuhl at juggle.com
Thu Jun 19 21:42:05 UTC 2008
The validator didn't help me in this instance. The first tag is valid XHTML.
That part of the HTML passed.
Kendra
-----Original Message-----
From: developers-bounces at freebase.com
[mailto:developers-bounces at freebase.com] On Behalf Of Nick Thompson
Sent: Thursday, June 19, 2008 4:24 PM
To: For discussions about MQL, Freebase API and apps built on Freebase
Subject: Re: [Developers] Mjt Help -- Please...
unfortunately it's really hard for mjt in the browser to pick up on
stuff like this, because the browser's HTML parser cleans up the
markup before mjt ever sees it. the browser's cleanup strategy is
designed to make the formatting look ok on-screen but it usually
confuses the mjt parser really badly.
i use a validating xml editor for mjt pages (emacs nxml-mode) and it
has saved me a lot of time.
at some point we'll have some sort of web-based mjt validator like the
W3C one that will points out below, but it doesn't exist yet i'm
afraid...
nick
Kendra Kuhl wrote:
> We figured out what the issue was. We had an anchor tag on the page that
we
> were closing like this:
> <a id="ModuleQuery0af77f7aa0bd46bd3dd27d80a1c88" />.
>
> Once we changed it to this:
> <a id="ModuleQuery0af77f7aa0bd46bd3dd27d80a1c88" ></a>
>
> it started to work.
>
> -----Original Message-----
> From: developers-bounces at freebase.com
> [mailto:developers-bounces at freebase.com] On Behalf Of Will Moffat
> Sent: Thursday, June 19, 2008 12:57 PM
> To: For discussions about MQL, Freebase API and apps built on Freebase
> Subject: Re: [Developers] Mjt Help -- Please...
>
> Hi Kendra,
>
>> The error that firebug gives me is: syntax error ));\n - inside of
>> mjt.js line #3359.
>
> I think I saw a similar problem once when I had invalid XHTML (mjt is
> pretty sensitive to unclosed divs etc)
>
> It might be worth adding this to your example:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
>
> and trying to validate it:
> http://validator.w3.org/#validate_by_input
> (you'll have to ignore all the warnings about mjt attributes)
>
> If that doesn't solve the problem then let us know.
>
> The error message from mjt is also very unhelpful. Nick or myself
> should look into that.
> regards,
> --Will
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
_______________________________________________
Developers mailing list
Developers at freebase.com
http://lists.freebase.com/mailman/listinfo/developers
More information about the Developers
mailing list