List Info

Thread: Re: How to handle innerHTML(which contains doublequotes) in JavaScript




Re: How to handle innerHTML(which contains doublequotes) in JavaScript
user name
2007-12-15 02:42:38
can u give an example code to attain dom traversal of all
elements
(textbox, dropdown <select>) in a DIV container.

On Dec 12, 10:59 am, Jambalaya <chris.ak...gmail.com> wrote:
> On Dec 11, 2:09 am, Mahernoz <maher...gmail.com> wrote:
>
> > Hi Friends,
> [snip]
>
> > the problem here is i want to make the html of
dvAArea Xml compatible.
> > but i am finding that the innerHTML property
removes the double quotes
> > in IE6.
>
> > And as this removal occurs i cannot load it as a
validXml (which is
> > used for other purpose).
>
> > Regards,
> > Mahernoz
>
> The innerHTML and outerHTML properties return
serialized markup
> (generated source) including expando properties and
properties
> modified/added since being sent from the server.
Internally, IE is
> rather casual about property values. If the value has
no whitespace
> then IE feels no need to quote it. So your options are
to write a
> replacement for innerHTML using DOM traversal or ensure
that your
> values contain whitespace. The second option probably
won't work
> either since I doubt IE would return well-formed xml
anyway.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "JavaScript Forum" group.
To post to this group, send email to
JavaScript-Informationgooglegroups.com
To unsubscribe from this group, send email to
JavaScript-Information-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/JavaScript-Information
?hl=en
-~----------~----~----~----~------~----~------~--~---


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )