I've set up a test page and no possible combination that I try works:
http://dev.jquery.com/~john/ticket/xmlns/

Including the basic one:
var div = document.createElement("div");
div.innerHTML = '<b lift:gc="foo">Hi</b>';

It sounds like there's another issue at play.

--John



On Fri, Feb 13, 2009 at 12:43 AM, David Pollak
<feeder.of.the.be...@gmail.com> wrote:
>
> I set a breakpoint at line 899 and inspected the div variable.  It
> seems to be bound a phantom document that does not have any attributes
> (e.g., the xmlns:lift="..." attribute).
>
> This div is created in line 850 (div = context.createElement("div");)
>
> Hope this helps.
>
> On Feb 12, 9:24 pm, David Pollak <feeder.of.the.be...@gmail.com>
> wrote:
>> On Feb 12, 7:37 pm, John Resig <jere...@gmail.com> wrote:
>>
>> > I'm trying to figure out if this is something that's blockUI-specific.
>> > What happens if you do:
>> > $("#hi").html('<b lift:gc="foo">Hi</b>');
>>
>> That fails in the same way on line 899 of jQuery 1.3.1.
>>
>>
>>
>> > Inside your try/catch.
>>
>> > --John
>>
>> > On Thu, Feb 12, 2009 at 10:08 PM, David Pollak
>>
>> > <feeder.of.the.be...@gmail.com> wrote:
>>
>> > > On Feb 12, 6:09 pm, John Resig <jere...@gmail.com> wrote:
>> > >> > "application/xhtml+xml"
>>
>> > >> What do you do for the other browsers? (IE)
>>
>> > > The XHTML is sent through a quirks mode rewriter for IE and served as
>> > > text/html
>>
>> > >> >> 2) Self-closing script tags are invalid (may want to fix those 
>> > >> >> first).
>>
>> > >> > Why are they invalid for xhtml?
>>
>> > >> Dunno, but they are:http://www.w3.org/TR/xhtml1/#C_3
>>
>> > > Okay.  I've changed up the last XHTML -> bytes phase to put explicit
>> > > closing tags on <script/>, <p/>, etc.  The behavior in Firefox is the
>> > > same with the changes... the exception is thrown.  Here's the failing
>> > > file:
>>
>> > > <?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="http://www.w3.org/1999/xhtml"; xmlns:lift="http://
>> > > liftweb.net/"><head>
>> > >    <meta http-equiv="content-type" content="text/html;
>> > > charset=UTF-8" />
>>
>> > >    <title>GC Test</title>
>>
>> > >    <script src="/scripts/jquery-1.3.1.js" type="text/javascript"></
>> > > script>
>> > >    <script src="/scripts/jquery.blockUI.js" type="text/javascript"></
>> > > script>
>> > > <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>
>>
>> > >> --John
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to