Confirmed users, Bureaucrats and Sysops emeriti
419
edits
(→Types) |
|||
Line 13: | Line 13: | ||
Object = record {parent:Object} // record with parent field | Object = record {parent:Object} // record with parent field | ||
Document = record { | Document = record {children:Array = [], | ||
parent:Object = null} | |||
where appendChild(c) = (c.parent = this, this.children.push(c)) | where appendChild(c) = (c.parent = this, this.children.push(c)) | ||
Link = record { | Link = record {href:String, | ||
text:String, | |||
parent:Object = null} | |||
Button = record { | Button = record {onclick:String, | ||
text:String, | |||
parent:Object = null} | |||
IFrame = record { | IFrame = record {src:String, | ||
content:Window = null, | |||
parent:Object = null} | |||
Script = record {parent:Object = null | Script = record {content:String, | ||
parent:Object = null} | |||
Window = record { | Window = record {location:String, | ||
principal:Principal = urlPrincipal(location), | principal:Principal = urlPrincipal(location), | ||
opener:Window = null, | opener:Window = null, | ||
document:Document = null} | document:Document = null, | ||
parent:Object = null} | |||
</pre> | </pre> | ||