Wednesday, February 18, 2015

<div /> parsing not work in dom Element through innerHtml ?

Should or can I put <div /> as innerHTML on a gwt dom Element?

According to the spec i'ts not valid HTML, but it's valid XHTML.

If I input the following string:

<div>
    <div />
</div>
<div>
   <div />
</div>

The gwt dom Element will contain the following, which is incorrect:

<div>
   <div>
       <div></div>
        <div>
          <div></div>
        </div>
    </div>
</div>

How to deal with this ?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment