Results 1 to 6 of 6

Thread: Ext 4 and doctype

  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2008
    Posts
    19

    Default Ext 4 and doctype

    In the past, I have heard that Sencha recommends no doctype. With Ext JS 3, I've run into layout issues with Ext components when I've used a strict doctype.

    However, I notice that the Ext 4 Examples use different doctypes:
    - Strict: http://dev.sencha.com/deploy/ext-4.0...ut/border.html
    - Transitional: http://dev.sencha.com/deploy/ext-4.0...arts/Area.html
    - None: view-source:http://dev.sencha.com/deploy/ext-4.0...raw/Tiger.html

    Most Ext 4 examples do seem to use either strict or transitional.

    What is the recommended doctype for Ext 4?
    ExtJS is amazing.

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243

    Default

    For Ext 4 and going forward we recommend using a Strict doctype for your apps.

    Our visual QA is running all the examples in all the different browser modes however, and we are trying to ensure the framework will work no matter what doctype you use.

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661

    Default

    The recommended doctype is to use strict mode as browsers optimize for this and Ext4 uses CSS box-sizing (IE6 and IE7 excluded) instead of javascript to ensure consistent measurements.

  4. #4
    Ext JS Premium Member
    Join Date
    Jun 2008
    Posts
    19

    Default

    Thanks for the replies. That is great news that we can use strict doctype.
    ExtJS is amazing.

  5. #5
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Orlando, FL
    Posts
    41

    Default Html 5 uses a differnet doctype <!DOCTYPE html>

    The html 5 spec recommends this doc type:
    <!DOCTYPE html>
    http://dev.w3.org/html5/spec/Overview.html#the-doctype

    I believe the ExtJs 4 is Html 5 compatible. So would you recommend using the html 5 doctype?

  6. #6
    Sencha User charris's Avatar
    Join Date
    Sep 2010
    Location
    Brooklyn, NY
    Posts
    106

    Default

    Quote Originally Posted by Jamie Avins View Post
    The recommended doctype is to use strict mode as browsers optimize for this and Ext4 uses CSS box-sizing (IE6 and IE7 excluded) instead of javascript to ensure consistent measurements.
    Pardon my dense skull, but to be explicit: you're saying that Ext4 still supports consistent box-sizing in IE6/7, but it does so via JavaScript. Correct? Thanks.

Similar Threads

  1. What doctype should I use with Ext JS?
    By ericprimmer in forum Ext 3.x: Help & Discussion
    Replies: 31
    Last Post: 12 Jul 2011, 9:41 PM
  2. IE 9 and the DOCType
    By rkim in forum Community Discussion
    Replies: 5
    Last Post: 27 Mar 2011, 2:17 AM
  3. To DOCTYPE, or not to DOCTYPE?
    By kwtaylor83 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 3 Sep 2010, 8:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •