1) What mimetype are you serving this with? 2) Self-closing script tags are invalid (may want to fix those first).
--John On Thu, Feb 12, 2009 at 1:43 PM, David Pollak <feeder.of.the.be...@gmail.com> wrote: > > Folks, > > I use and *love* jQuery. I also run the Lift web framework project. > In Lift, we use jQuery and we use XHTML namespaces (we need to > decorate certain XHTML elements with lift:gc attributes.) > > We've run into a very weird interaction between jQuery BlockUI and > Firefox and XHTML namespaces. > > Basically, in jQuery 1.3.1 line 899, when the "elem" variable contains > a valid namespace (in this case, lift:gc), an exception is raised: > > [Exception... "Component returned failure code: 0x80004003 > (NS_ERROR_INVALID_POINTER) [nsIDOMNSHTMLElement.innerHTML]" nsresult: > "0x80004003 (NS_ERROR_INVALID_POINTER)" location: "JS frame :: > http://localhost:8080/scripts/jquery-1.3.1.js :: anonymous :: line > 899" data: no] > > The code runs fine on all major browsers (IE 7, Safari, Chrome) except > Firefox. > > Can someone look into this and perhaps help out? > > HTML that reproduces the problem is enclosed. > > Thanks, > > David > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// > www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns:lift="http://liftweb.net/" xmlns="http://www.w3.org/1999/ > xhtml"><head> > <meta content="text/html; charset=UTF-8" http-equiv="content-type"/ >> > > <title>GC Test</title> > > <script type="text/javascript" src="/scripts/jquery-1.3.1.js"/> > <script type="text/javascript" src="/scripts/jquery.blockUI.js"/> > <script type="text/javascript" src="/ajax_request/liftAjax.js"/></ > head> > <body> > <div id="hi"></div> > > <script> > // <![CDATA[ > $(document).ready(function() { > try { > var d = document.getElementById("hi"); > var s = '<b lift:gc="foo">Hi</b>'; > d.innerHTML = s; > jQuery.blockUI({message: s}); > } catch (e) { > alert(e); > } > }); > > // ]]> > </script> > </body> > </html> > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---