Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2020-09

browserconsole strange behaviour

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mgr. Janusz Chmiel

May be, that this text is not really seen on The screen by A sighted users or developers. May be, that only screen reader build in WEB browser object inter process communication can retrieve this text. But before Writeln display at least one character, my screen reader detect The following lines of text after using console without using ConsoleInit procedure.

Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""
Setting inner text to ""
Setting inner text is now ""

Does WEB browser show this text on A real screen? Or is it only screen reader whych does that?

Reply by email

Jean SUZINEAU
to Mgr. Janusz Chmiel

I think it's a debug message added for tuning the code during development.

The console says it comes from unit System.pas line 601. if you put a breakpoint on this line in Firefox or Seamonkey and relaod the page, you'll see in the call stack that it occurs during a call to TCustomInputWidget.ApplyWidgetSettings
in htmlwidgets.pp line 2625 where you will find :
Writeln('Setting inner text to "',FText,'"');

Reply by email