Closed Bug 196010 Opened 23 years ago Closed 23 years ago

DHTML doesn't work correctly when I use a DOCTYPE

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

CLOSED INVALID

People

(Reporter: trichetn, Assigned: asa)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.3b) Gecko/20030210 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.3b) Gecko/20030210 When I put teh line <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> The DHTML layer on the top left corner, instead of following the mouse. Reproducible: Always Steps to Reproduce: 1.Put the mouse over the links 2.Go to the other page without doctype 3.Put the mouse over the links Actual Results: the layers are on the top left corner in the first page the layers follows the mouse in the second page Expected Results: the layers must follow the mouse on both pages
> document.getElementById('bulle').style.left=x + decal_x; In CSS, lengths must have a unit. What you wrote there is the equivalent of the CSS: "left: 100". This is not valid CSS, but in "quirks" mode (on pages that have no doctype or an old doctype) we will accept it. On pages with a modern doctype we will be in "standards" mode. And the invalid CSS will be ignored. Writing that JS as: document.getElementById('bulle').style.left=x + decal_x + "px"; will do what you want. Not a Mozilla bug.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
documentation of quirk and standard modes : http://www.mozilla.org/docs/web-developer/quirks/
Status: RESOLVED → VERIFIED
Thank you very much
Status: VERIFIED → CLOSED
Please don't mark bugs closed... that makes them drop off the various statistic-gathering and search radars...
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.