I just wrote:

> I just stumbled on a problem with Scriptaculous DOM Builder
> used in an XHTML page served as "application/xhtml+xml"
> (the way such pages should be served).
> 
> What happened was that a "div" element I tried to create
> (with Builder.node('div' ...)) actually became a "DIV" element
> (uppercase!) which totally broke things for me. The CSS would
> not work any more, and the element was not seen as a "div" element
> at all (at least not when reported on the Firebug console) but
> as an "unknown element".
> [...]
> Is this a known problem? Is there some kind of approved
> and safe solution?

I bit of search turned up this bug which diagnoses the
problem in exactly the same way:

http://prototype.lighthouseapp.com/projects/8887/tickets/5-builder-node-breaks-xhtml

This should be easy to fix but checking for the MIME
type used, and skipping the upper-casing if it's not
"text/html".

-- 
Bertilo Wennergren <http://bertilow.com>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to