twebbrowser - Need help for displaying HTML5 form elements into webbrowser in delphi -


i working on adding new form elements html5 input type email, url etc webbrowser. able save these controls html file in proper way. however, while loading html file webbrowser, not getting input type properly. getting input type "text" irrespective of whatever type setting. can me please.

it worth pointing out have been conversing manasee , have seen code, answer aimed more @ similar problem.

assuming have html5 file saved locally, start making sure when loaded internet explorer html5 elements behave expected. internet explorer (and twebbrowser) has tendency want use compatible view may render ie8 or earlier , stop html5 elements working.

if doesn't behave html5 in ie missing something. suggest having both:

<!doctype html> 

as first line of file and:

<meta http-equiv="x-ua-compatible" content="ie=edge"> 

as first line in head.

if ie renders file html5 embedded twebbrowser doesn't, indicates issue how file being loaded. there number of ways html can loaded or injected browser, of these leave twebbrowser emulating earlier version.

so try simply:

webbrowser.navigate('file://c:/myfile.html'); 

one final point. don't try on xp - doesn't support version of ie recognises html5 neither twebbrowser.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -