#15899 closed defect (worksforme)
dijit.form.DateTextBox will not work with conditional comments("if") before "head"
Reported by: | qxo | Owned by: | qxo |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | General | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
the test sample: http://qxotest.googlecode.com/svn/trunk/dojoTest/testH5bpWithDojoDateWidgetOK.html -- without "IF" code before "head"
http://qxotest.googlecode.com/svn/trunk/dojoTest/testH5bpWithDojoDateWidgetFailed.html -- with "IF" code before "head"
Change History (10)
comment:1 Changed 8 years ago by
Owner: | set to qxo |
---|---|
Status: | new → pending |
comment:3 Changed 8 years ago by
Status: | pending → new |
---|
The scond test(http://qxotest.googlecode.com/svn/trunk/dojoTest/testH5bpWithDojoDateWidgetFailed.html) not works in my "IE 8 with compatibility-view"(not always,but switch to compatibility-view will see the problem ) , Firefox 14.0.1 and Google Chrome 21.0.1180.83 m
comment:5 Changed 8 years ago by
Oh, nevermind, it's this lame VPN server on my machine, when I shut it down I can access the link.
comment:6 Changed 8 years ago by
But the second link is working for me on IE8 with all setting (browser mode = IE8 compat, browser mode = IE7, etc)
comment:7 Changed 8 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I tried some more, I cannot reproduce any problem, sorry.
comment:8 Changed 8 years ago by
if using dojo with same domain as test page,it's work fine. but using cdn,will see the problem:(
comment:9 Changed 8 years ago by
It's about locale language problem,not about " conditional comments". dojo do not respect "html element lang attribute" ,just use browser's default language,it's not right! if html element have lang attribute,the dojo default locale should use it!
You can not see problem cause your browser default language is english,try change browser default language to "Chinese/China?(zh-cn)" ,you'll see the problem!
comment:10 Changed 8 years ago by
Maybe. If you tell me what problem you are seeing then I'll check if I can see it too.
If you are upset that dojo doesn't fully obey a setting like <body lang="zh-cn">, this is expected behavior. You should set data-dojo-config's locale property in this case. See http://dojotoolkit.org/reference-guide/1.8/quickstart/internationalization/specifying-locale.html#quickstart-internationalization-specifying-locale.
do you have any more specifics of the problem? i don't immediately see an issue with this on chrome but since you mention conditional comments i assume you are having issues with IE. even still... you haven't given much detail about the problem.