1. #1
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default Quirks or Standard mode?

    Quirks or Standard mode?


    Darrell,

    Probably something we should get a clear direction from you on - are we moving forward with standards mode or quirks mode? (http://en.wikipedia.org/wiki/Quirks_mode)

    Google as of GWT 1.5 have decided to recommend moving to standards mode...
    http://code.google.com/p/google-web-...rdsModeSupport

    As testing/bugs will exist depending on what HTML mode is used, I think it would be worthwhile getting some statement on what is / isn't supported?

    Thoughts??????

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    I note that both Explorer and Mail demo both run in Standards mode.

  3. #3
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    I believe Ext GWT should support Standard Mode for these reasons :
    - "Support for quirks mode (...) may be dropped in future versions of GWT"
    - I believe cross-browser compatibility will be better with Standard Mode
    - when you build a new webapp with the GWT 1.5 applicationCreator, the generated html file enable Standard Mode. Therefore I (and I guess other users) have tested my web application in standard mode since beta1 release (was already supporting GWT 1.5M2) and not in quirks mode.

    I note that both Explorer and Mail demo both run in Standards mode.
    Actually, when you generate a new webapp with applicationCreator, it generates the following declaration :
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
     "http://www.w3.org/TR/html4/loose.dtd">
    In Explorer and Mail demo, it is not the same :
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

  4. #4
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    Wow - didn't think of using the Application creator to confirm - obvious now.

    Yep, well that is probably enough for me... we should be using standards mode and probably the doctype as defined in GWT ...
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
     "http://www.w3.org/TR/html4/loose.dtd">

  5. #5
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    some bugs pop up due to wrong/different doctype

    issue found here http://extjs.com/forum/showthread.php?t=38183

    and here http://extjs.com/forum/showthread.php?t=38671

  6. #6
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    another interesting tid bit...

    ExtJS set the doctype to...
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    in samples/demos like http://extjs.com/deploy/dev/examples/form/dynamic.html

    But most other samples have no doctype set - so quirks mode? So how does Jack handle things?

  7. #7
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    HTML 3.2 doctype requirement has been add to setup.txt : http://extjs.com/forum/showthread.ph...881#post182881

  8. #8
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    Note that GWT RC2 release notes has suggested that it is better to revert back to quirks mode, and the applicationCreator defaults to quirks mode when creating a new GWT app.

    You can still use standards mode for your GWT app, but please be aware that you may notice some layout issues. If you are switching an app from quirks mode to standards mode, your CSS styles might be applied differently, which could also affect your application. We will continue to address standards mode support in future GWT releases.
    Quirks mode it is then ;-)

  9. #9
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    What a shame
    Anyway, Ext GWT relies neither on standard mode nor on quirks mode. Ext GWT relies on "old standard" mode (HTML 3.2) so it won't affect us (we still have to add a doctype after the applicationCreator).

  10. #10
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    2
    gslender is on a distinguished road

      0  

    Default


    Quote Originally Posted by zaccret View Post
    Ext GWT relies on "old standard" mode (HTML 3.2)
    Not true anymore - Darrell has advised that moving forward, HTML 4.0 will be the quirks mode required...

    Quote Originally Posted by zaccret View Post
    so it won't affect us (we still have to add a doctype after the applicationCreator).
    ...but this is still true even with RC2 of applicationCreator eg

    1) ExtGWT needs this...
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

    2) RC2 GWT creates this ...
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    subtle but important difference in the version...

    http://en.wikipedia.org/wiki/Quirks_...document_types

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar