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.
  1. #1
    Sencha Premium Member
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    Jeff Raab is on a distinguished road

      0  

    Default 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() );

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,691
    Vote Rating
    107
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    I moved this thread into the bugs forum and pushed it to the tracker so we can look into it. Thanks

Tags for this Thread