-
16 Nov 2012 8:27 AM #1
GXT 3.0.1/3.0.2b - DomQuery.select bug?
GXT 3.0.1/3.0.2b - DomQuery.select bug?
A GWTTestCase with this code will pass using GXT 3.0.0 but fails in 3.0.1 and 3.0.2b. DomQuery.select doesn't seem to work anymore with class name selectors. Any ideas?
Code:DivElement div = Document.get().createDivElement(); div.setId( "test-id" ); div.setClassName( "test-class" ); BodyElement body = Document.get().getBody(); body.appendChild( div ); NodeList<Element> elements = DomQuery.select( "div" ); assertEquals( 1, elements.getLength() ); assertEquals( "test-id", elements.getItem( 0 ).getId() ); assertEquals( "test-class", elements.getItem( 0 ).getClassName() ); elements = DomQuery.select( ".test-class" ); assertEquals( 1, elements.getLength() ); assertEquals( "test-id", elements.getItem( 0 ).getId() ); assertEquals( "test-class", elements.getItem( 0 ).getClassName() );
-
16 Nov 2012 8:32 AM #2
I moved this thread into the bugs forum and pushed it to the tracker so we can look into it. Thanks
You found a bug! We've classified it as
EXTGWT-2601
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote