Results 1 to 7 of 7

Thread: Chrome 43 causes dom.setAttribute undefined in updateSrc

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
      0  

    Exclamation Chrome 43 causes dom.setAttribute undefined in updateSrc

    I have a formpanel with simple images created like below. On Chrome 43, this causes a runtime exception in updateSrc() at the call to dom.setAttribute('src', ...). Is there a workaround or FIX for this? I'm using Touch 2.2.

    Code:
                        {
                            xtype: 'image',
                            height: 250,
                            id: 'MobDashboardTilesImageRadioOne',
                            src: 'resources/images/Pad1Tile250.png',
                            pack: 'right'
                        },

  2. #2
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,780
    Vote Rating
    258
      0  

    Default

    Thanks for the report. There were a few issues with Chrome 43. Does it occur when using Chrome 44? Are you able to recreate this issue in a test case?
    https://fiddle.sencha.com/#home


    Join me at SenchaCon 2016!

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    This is an issue in version 44 as well, since Google moved DOM attributes into the prototype. dom.setAttributes() no longer exists but is being called in Sencha Touch framework's updateSrc() method when setting an image source. There's nothing I can do to fix this locally.

  4. #4
    Sencha - Support Team
    Join Date
    Feb 2013
    Location
    California
    Posts
    9,780
    Vote Rating
    258
      0  

    Default

    I see. Are you able to recreate this issue in a Fiddle?
    https://fiddle.sencha.com/#home


    Join me at SenchaCon 2016!

  5. #5
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    The repro case is to search the source code of Touch 2.2 for the words "dom.setAttribute" in updateSrc(), which will no longer work on Chrome versions 43 and above. My app code runs fine on Safari but crashes with "Uncaught TypeError: dom.setAttribute is not a function" in Chrome 44, for which the dom variable points to a new Image() object. This same code has been running for more than a year with no problem until the Chrome update.

    I reported that updateSrc() in Sencha Touch code uses this code, which fails. There is no need for a JSFiddle.

  6. #6
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    So is this an active issue? Will Sencha fix this?

  7. #7
    Sencha Premium Member
    Join Date
    Apr 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    So no reply from Sencha Support?

Similar Threads

  1. App is undefined in Chrome version 28
    By halcwb in forum Ext:Bugs
    Replies: 13
    Last Post: 19 Aug 2013, 6:57 AM
  2. Ext.js is undefined in Chrome
    By fmlabs in forum Ext: Q&A
    Replies: 2
    Last Post: 3 Sep 2012, 4:03 AM
  3. [INFOREQ] Ext.Ajax.request setAttribute is undefined bug
    By Colton in forum Ext:Bugs
    Replies: 7
    Last Post: 23 Jul 2012, 6:13 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
  •