[Cppcms-users] Why wikipp calls document.write() to generate simple <form> tag?
Brought to you by:
artyom-beilis
|
From: CN <cn...@fa...> - 2016-01-25 09:25:08
|
Hello!
I noticed below part of file "page.tmpl" in wikipp long time ago.
<script type="text/javascript">
<!--
document.write('<for')
document.write('m actio')
document.write('n="')
document.write('<%= submit %>" me')
document.write('thod="po')
document.write('st">')
-->
</script>
I have no idea about the moral of such design, but I did not ask why. I
think I should not keep pretending understanding it any more! What is
funny is that trying to figure out why, I ended up running into an
article saying that document.write() doesn't work with Firefox when it
encounter xhtml :-)
Could anyone clarify for me:
Why the most simple and straightforward HTML code "<form>" is not used
instead?
Thank you in advance!
Best Regards,
CN
--
http://www.fastmail.com - The way an email service should be
|