Sochettra / dynatree

Automatically exported from code.google.com/p/dynatree
0 stars 0 forks source link

IE8 doctype issues #236

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Having a tree everything works in IE6, FF, Chrome, Opera.

However if there is a doctype on the page, have tried:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
IE8 breaks, works fine without a D/T

Using Dynatree version 1.2.0 and jQuery 1.6.1

Attached files, IE8 with doctype, IE8 without doctype, UL markup.

Original issue reported on code.google.com by Alasdair...@gmail.com on 19 Oct 2011 at 10:30

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by moo...@wwwendt.de on 29 Oct 2011 at 9:41

GoogleCodeExporter commented 8 years ago
Thats because you passed invalid HTML.
IE seems to be more strict in standard or almost-standard mode.

This snippet is not allowed (LI must not contain a LI):

                        <li id="6_0" class="folder">
                            <a rel="7" href="/sub_sub_test">My Sub Sub Test</a>
                            <ul style="margin-left: 30px;">
                                <li id="file_7_0">
                                    <a href="/file_a">File A</a>
                                </li>
                                <li id="file_7_1">
                                    <a href="/file_b">File B</a>
                                </li>
                            </ul>
                            <li id="file_6_0">
                                <a href="/file_c">File C</a>
                            </li>
                            <li id="file_6_1">
                                <a href="/file_d">File D</a>
                            </li>
                        </li>

Original comment by moo...@wwwendt.de on 27 Dec 2011 at 5:48