[Pas2js] Extend(inheritance)

warleyalex warleyalex at yahoo.com.br
Tue Jun 19 00:11:09 CEST 2018


At the web unit can be found external classes definitions, "TJS + weird
classNames". These names actually correspond to interfaces defined in DOM
Level 2 HTML Specification. 
That same specification also defines inheritance between those interfaces. 

It says, for example, that "… HTMLParagraphElement interface have all
properties and functions 
of the HTMLElement interface …” and that "… HTMLElement interface have all
properties and 
functions of the Element interface …”, and so on.


TJSElement = class external name 'Element' (TJSNode)

end;

TJSHTMLElement = class external name 'HTMLELement' (TJSElement)

end;

TJSHTMLParagraphElement = class external 'HTMLParagraphElement'
(TJSHTMLElement)
public
  align: String;
end;

	




--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list