PDA

View Full Version : [CLOSED] Fields (except textfield ! ) do not accept "@" in id since 4.1b



pkli
24 Feb 2012, 7:51 AM
REQUIRED INFORMATIONExt version tested:

Ext 4.1b1
Ext 4.1b2
Browser versions tested against:

Chrome 17 Osx 10.7
IE 9 Win 7
FF 9 Win 7
Safari 5 Osx 10.7
DOCTYPE tested against:

HTML 4.01 Strict
XHTML 1.0 Transitional
Description:

Since the 4.1 beta, inserting a "@" char in a field id cause an error :

Cannot read property 'tagName' of null
ext-all-debug.js line 12302 (dom query)

No problem up to 4.0.7.
AND : no problem with textfield (even in 4.1b2).
Only "texfield" accept @ in id ...

Steps to reproduce the problem:

just set id of a field with @ in id
{fieldLabel: "Test", name:"test", xtype: "datefield",id:"[email protected]"}
The result that was expected:

a date field
The result that occurs instead:

js error ...
Operating System:

MacOSx
Win7

mitchellsimoens
24 Feb 2012, 12:48 PM
HTML DOM element cannot have an id or name with that.

http://www.w3.org/TR/html4/types.html

pkli
24 Feb 2012, 2:03 PM
sorry ... you're right ...