Sha256: 1003340ffa99211a84d5da9354a0d9c3a7c688422ba11f6c78ecb36fa171698b

Contents?: true

Size: 645 Bytes

Versions: 11

Compression:

Stored size: 645 Bytes

Contents

$debug("Defining HTMLBaseElement");
/* 
* HTMLBaseElement - DOM Level 2
*/
var HTMLBaseElement = function(ownerDocument) {
    //$log("creating anchor element");
    this.HTMLElement = HTMLElement;
    this.HTMLElement(ownerDocument);
};
HTMLBaseElement.prototype = new HTMLElement;
__extend__(HTMLBaseElement.prototype, {
    get href(){
        return this.getAttribute('href');
    },
    set href(value){
        this.setAttribute('href',value);
    },
    get target(){
        return this.getAttribute('target');
    },
    set target(value){
        this.setAttribute('target',value);
    }
});

// $w.HTMLBaseElement = HTMLBaseElement;		

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
envjs19-0.3.8.20101029121421 src/html/base.js
envjs-0.3.8 src/html/base.js
envjs-0.3.7 src/html/base.js
envjs-0.3.6 src/html/base.js
envjs-0.3.5 src/html/base.js
envjs-0.3.4 src/html/base.js
envjs-0.3.3 src/html/base.js
envjs-0.3.2 src/html/base.js
envjs-0.3.1 src/html/base.js
envjs-0.3.0 src/html/base.js
envjs-0.2.0 src/html/base.js