Ticket #318 (closed defect: duplicate)
IE 6 popup size is correct only in quirks mode or with a HTML 3.2 DTD
| Reported by: | mokhet | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | Version 1.0 |
| Component: | Xinha Core | Version: | |
| Severity: | normal | Keywords: | popup IE height |
| Cc: |
Description
The popups - link.html, insert_table.html, insert_image.html, select_color.html - are using invalid HTML (no DTD) making IE fallback to quirks mode
I have tried to add the following DTD
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
the DTD i think it should be used in popups (based on actual structure) is the HTML 4.01 transitional
but when thoses DTD are used, IE (dlg_init() in popup.js) fails to calculate the height of the dialog box.
The only way to have IE render the correct height is to not use a DTD or use a HTML 3.2 DTD
it is impossible to use a 3.2 DTD since it is not adapted to the needs because some attribute doesnt exist in 3.2
- onsubmit
- onmouseover
- id
- bgcolor
- % in width
- onclick
- onload
- and the worst, SRC is not allowed in tag SCRIPT
So we actually end up using no DTD, but once again, i really dont think it is what is needed imo because cross compatibility is great, but using invalid HTML to make IE understand something is probably not the best idea :D
