Results 1 to 2 of 2

Thread: [2.0][CLOSED] Ext.get/Ext.getDom does not fix IE's document.getElementById bug

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Dec 2007
    Vote Rating

    Default [2.0][CLOSED] Ext.get/Ext.getDom does not fix IE's document.getElementById bug

    I ran into a problem with my code today and found it to be one of IE's many bugs. In IE, the document.getElementById function returns by the name of an element before it looks for the id of an element. I was using Ext.get in my code and found the same bug. I would think that it should be something that Ext would remove since an IE bug should not alter how Ext works. I hope that this could be fixed.

    Here is an example:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="" xml:lang="en-us" lang="en-us">
            <title>Ext getElementById bug</title>
            <meta http-equiv="Content-Language" content="en-us" />
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <meta http-equiv="Content-Script-Type" content="text/javascript" />
            <meta name="description" content="This is the HEAD's description meta tag." />
            <link media="all" rel="stylesheet" href="/scripts/ext-2.0/resources/css/ext-all.css" type="text/css" />
            <form action="ext-ext.bug.html" method="post">
                    <input type="text" size="50" id="description" name="description" value="This is the FORM's description input field." />
                    <button type="button" id="go" name="go" value="True">Go!</button>
            <script type="text/javascript" src="/scripts/ext-2.0/adapter/ext/ext-base.js"></script>
            <script type="text/javascript" src="/scripts/ext-2.0/ext-all.js"></script>
            <script type="text/javascript">
                Ext.onReady(function () {
                    Ext.get('go').on('click', function () {
                        var el = Ext.get('description');
                        var domEl = el.dom;
                        if (domEl.tagName === 'INPUT') {
                        } else if (domEl.tagName === 'META') {
    Last edited by noelito; 14 Apr 2008 at 10:16 AM. Reason: typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts