Changeset 37

Show
Ignore:
Timestamp:
12/17/07 08:07:26 (11 months ago)
Author:
simon
Message:

Added a test for the attribute node "specified" property

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • collected/trunk/html-test-cases/getting-tabindex.html

    r36 r37  
    4545                this.log(desc, 'elem.attributes["' + attr + '"].nodeValue', 
    4646                        node.nodeValue); 
     47                this.log(desc, 'elem.attributes["' + attr + '"].specified', 
     48                        node.specified); 
    4749        }else{ 
    4850                this.log(desc, 'elem.attributes["' + attr + '"]', node); 
     51        } 
     52}; 
     53Logger.prototype.logGetAttributeNode = function(id, desc, attr){ 
     54        var node = document.getElementById(id).getAttributeNode(attr); 
     55        if(node){ 
     56                this.log(desc, 'elem.getAttributeNode("' + attr + '").nodeValue', 
     57                        node.nodeValue); 
     58                this.log(desc, 'elem.getAttributeNode("' + attr + '").specified', 
     59                        node.specified); 
     60        }else{ 
     61                this.log(desc, 'elem.getAttributeNode("' + attr + '")', node); 
    4962        } 
    5063}; 
     
    6679        this.logAttributes(id, desc, "tabindex"); 
    6780        this.logAttributes(id, desc, "tabIndex"); 
     81        this.logGetAttributeNode(id, desc, "tabindex"); 
     82        this.logGetAttributeNode(id, desc, "tabIndex"); 
    6883}; 
    6984function isIE(){