[Pas2js] Random bugs and observations

Ryan Joseph ryan at thealchemistguild.com
Fri May 11 09:16:15 CEST 2018



> On May 11, 2018, at 2:07 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> Correct, this is not a property of TJSElement.
> 
> TJSNode has innerText and textContent
> TJSElement has innerHTML and outerHTML

I got that from the WebGL docs like seen below. I added the property myself and it does in fact return the tags text content. I guess it’s the same as textContent or innerHTML perhaps.

	• var vertexShaderSource = document.getElementById("2d-vertex-shader").text;
	• var fragmentShaderSource = document.getElementById("2d-fragment-shader").text;

Regards,
	Ryan Joseph



More information about the Pas2js mailing list