html←'<title>Title Wins!</title>Test'
'hr' ⎕WC 'HTMLRenderer'('HTML' html)('Caption' 'Caption Wins!')('Size' (10 20))
However when using the URL method and loading an HTML file that has no <title> markup the caption of the form will be the name of the file loaded and if there is a <title> markup in the file it will the caption of the form:
'hr' ⎕WC 'HTMLRenderer'('URL' 'file:///D:\NoTitle.html')('Caption' 'Caption Wins!')('Size' (10 20))
This makes it impossible to load an HTML file and have control over the caption of the resulting form (we write the customer name in the caption of the form in our case with our company logo).
Is this the expected behavior ? In the affirmative is the workaround would be to do a regular form and have the HTMLRenderer specified has a child or there is a better idea ?