Security:Strawman Model: Difference between revisions

Jump to navigation Jump to search
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 33: Line 34:
             where load(s) = (this.content = new Window(urlString(s),
             where load(s) = (this.content = new Window(urlString(s),
                                                         urlPrincipal(s),
                                                         urlPrincipal(s),
                                                         null))
                                                         null),
                              this.content.load(s))


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


Confirmed users, Bureaucrats and Sysops emeriti
419

edits

Navigation menu