Remove this: <?xml version="1.0" encoding="utf-8"?>
An XML Declaration does trigger “Quirks Mode” in IE and unless the document is sent as XML, e.g., application/xhtml+xml, in the Content Type there isn’t any benefit. The HTML 5 DocType <!DOCTYPE html> triggers standards-compliant mode because it is not recognized. Please read the table in http://msdn.microsoft.com/en-us/library/ms535242(VS.85).aspx and note that an “Unrecognized DOCTYPE”, i.e., <!DOCTYPE html>, is “On” (for standards-compliant mode). Also in presence of <!DOCTYPE html > all other browsers will nicely switch to "standards mode" ... Try. On Apr 1, 12:54 pm, Julian Aubourg <[email protected]> wrote: > I seriously doubt it given:1) It works in every other browser (PC and MAC > versions) > 2) It worked with 1.2.7 > > But in case: > > <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html > PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr"> > > Now I'm trying to get a dumbed down example because it's actually happening > in the popup plugin I wrote and I doubt it would be really usefull if I > dumped 1K lines of js code ;) > > I'm looking into the DOM structure with firebug and try & make a minimal > example. I'll get back to you asap Brian. > > 2009/4/1 DBJDBJ <[email protected]> > > > > > It seems you have a <!DOCTYPE >"issue" ? > > That is if !DOCTYPE is changed to a proper one, things of this sort > > will start appearing, very soon ;o) > > > For my team I have prepared this "quick jQ 1.3.X reminder" page: > > >http://dbjsystems.com/jq/ > > > PS: which is still called "quick test" ... ;o( > > > On Apr 1, 12:29 pm, Brandon Aaron <[email protected]> wrote: > > > Could you show me the markup of the page that you are having these issues > > > on? > > > -- > > > Brandon Aaron > > > > On Wed, Apr 1, 2009 at 5:54 AM, Julian Aubourg <[email protected] > > >wrote: > > > > > I don't know if something changed with the 1.3.2 version shared on > > google > > > > but the viewport size is now correct Oo. > > > > Anyway, I have a couple more problems (though I found workarounds). > > They > > > > are all IE only (tested on IE7): > > > > > 1) $(window).scrollTop() and .scrollLeft() do not work. You have to do > > > > $("html").scrollTop() & .scrollLeft() respectively. > > > > 2) element.offset() doesn't take scrolls into account (I'm pretty > > confident > > > > it is linked to bug #1). So you have to manually add > > $("html").scrollTop() & > > > > .scrollLeft() to have the correct coords. > > > > > -- Julian > > > > > 2009/3/30 Brandon Aaron <[email protected]> > > > > >> You could pull in the window logic from 1.2.6 ( > > > >>http://dev.jquery.com/browser/tags/1.2.6/src/core.js#L1338) into the > > > >> 1.3.2 release ( > > > >>http://dev.jquery.com/browser/tags/1.3.2/src/dimensions.js#L25). > > > >> -- > > > >> Brandon Aaron > > > > >> On Mon, Mar 30, 2009 at 3:48 PM, Julian Aubourg < > > [email protected] > > > >> > wrote: > > > > >>> Thanks for the quick answer Brandon. > > > >>> And yes, I can live with a nightly build though, as you can imagine, > > the > > > >>> client is like not understanding what's taking so long (go explain > > the joy > > > >>> of version migration to a client!). Any timeframe? I could also live > > with an > > > >>> ugly workaround until it's done if you happen to have one. > > > > >>> -- Julian > > > > >>> 2009/3/30 Brandon Aaron <[email protected]> > > > > >>> There is a bug open on window dimensions in jQuery 1.3.x... > > Unfortunately > > > >>>> it looks like we have a gap in unit tests that allowed this > > regression to > > > >>>> occur. It looks like it happened in r5985. It will be fixed for the > > 1.3.3 > > > >>>> release but I'm unsure when that release will happen right now. I > > should be > > > >>>> able to allocate some time to fix this issue soon though if you > > don't mind > > > >>>> using a nightly build once it is fixed. > > > >>>> -- > > > >>>> Brandon Aaron > > > > >>>> On Mon, Mar 30, 2009 at 2:14 PM, Julian Aubourg < > > > >>>> [email protected]> wrote: > > > > >>>>> Hi all, > > > >>>>> I'm in the process of migrating a site from 1.2.7 to 1.3.2. > > > > >>>>> So far, I just ran into a bug in webkit browsers that forced me to > > > >>>>> rewrite "expr1, expr2, ... exprN" selectors into loops (I suppose > > you're > > > >>>>> aware of this one). > > > >>>>> I also have trouble with attaching event handlers to dynamically > > > >>>>> created elements, but I guess it's all a question of timing (and > > probably > > > >>>>> the correct spot to look into $.live() ). > > > > >>>>> Anyway, I had some simple code to get the position for a div to > > appear > > > >>>>> at the center of the viewport: > > > > >>>>> getCenterPosition: function(targetWidth,targetHeight) { > > > >>>>> var win = $(window); > > > >>>>> var target = { > > > >>>>> top: > > Math.round((win.height()-targetHeight)/2)+win.scrollTop(), > > > >>>>> left: > > Math.round((win.width()-targetWidth)/2)+win.scrollLeft() > > > >>>>> } > > > >>>>> if (target.top<0) target.top = 0; > > > >>>>> if (target.left<0) target.left = 0; > > > >>>>> return target; > > > >>>>> }, > > > > >>>>> It was cross-browser and quite simple indeed. > > > > >>>>> Problem is, in 1.3.2, windows dimensions are those of the whole > > body, > > > >>>>> not just the viewport. I turned the code upside/down but just can't > > find the > > > >>>>> proper mean to do the exact same thing with the changes that > > probably > > > >>>>> occured at 1.3.0. > > > > >>>>> Since you all know the internals of jQuery, I guess this is as good > > a > > > >>>>> place to ask for ideas or pointers. > > > > >>>>> Take care all, > > > > >>>>> -- Julian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
