mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-09-16 21:29:07 +02:00
* Add getHTMLElementById alias to document class
This commit is contained in:
parent
65e1e2b4ce
commit
e22d53612b
@ -23,6 +23,7 @@ uses Types, JS;
|
|||||||
Type
|
Type
|
||||||
TJSEvent = Class;
|
TJSEvent = Class;
|
||||||
// Forward definitions
|
// Forward definitions
|
||||||
|
TJSHTMLElement = Class;
|
||||||
TJSWindow = class;
|
TJSWindow = class;
|
||||||
TJSDOMTokenList = class;
|
TJSDOMTokenList = class;
|
||||||
TJSXPathResult = CLass;
|
TJSXPathResult = CLass;
|
||||||
@ -907,6 +908,7 @@ TEventListenerEvent = class external name 'EventListener_Event' (TJSObject)
|
|||||||
function execCommand(aCommandName : String; aShowDefaultUI : Boolean) : boolean; overload;
|
function execCommand(aCommandName : String; aShowDefaultUI : Boolean) : boolean; overload;
|
||||||
Procedure exitFullScreen;
|
Procedure exitFullScreen;
|
||||||
function getElementById(aID : String) : TJSElement;
|
function getElementById(aID : String) : TJSElement;
|
||||||
|
function getHTMLElementById(aID : String) : TJSHTMLElement; external name 'getElementById';
|
||||||
function getElementsByClassName(aNames : string) : TJSHTMLCollection;
|
function getElementsByClassName(aNames : string) : TJSHTMLCollection;
|
||||||
function getElementsByName(aName : String) : TJSNodeList;
|
function getElementsByName(aName : String) : TJSNodeList;
|
||||||
function getElementsByTagName(aName : String) : TJSHTMLCollection;
|
function getElementsByTagName(aName : String) : TJSHTMLCollection;
|
||||||
|
Loading…
Reference in New Issue
Block a user