Security:Strawman Model: Difference between revisions

Line 19: Line 19:
                     children:Array = []}
                     children:Array = []}
             where appendChild(c) = (c.parent = this, this.children.push(c))
             where appendChild(c) = (c.parent = this, this.children.push(c))
              and parse(s) = // parse s as markup according to the Grammar


Link      = record {parent:Object = null,
Link      = record {parent:Object = null,
Line 44: Line 43:
                     principal:Principal,
                     principal:Principal,
                     opener:Window,
                     opener:Window,
                    // self refers to the Window instance containing this field
                     document:Document = null}
                     document:Document = new Document(self)}
             where load(s) = parse(this, fetch(urlString(s)))
             where load(s) = document.parse(fetch(urlString(s)))
</pre>
</pre>


Confirmed users, Bureaucrats and Sysops emeriti
419

edits