html5 & JavaScript
Posted:
Tue Mar 29, 2011 5:00 am
by mapleleaf
By default, html5 doesnt require the language or text attribute when JavaScript is declared.
(ie)
<script language="JavaScript" type="text/javascript">
/*<![CDATA[*/
/*]]>*/
</script>
In html5
<script>
/*<![CDATA[*/
/*]]>*/
</script>
I bring this up, as I used the WB to insert JavaScript as seen above. Although correct and it will work, will the new version of WB have the html5 option?
Any idea, when the new version will be released? Doing html5 using WB2010 is at times very troublesome when troubleshooting and optimizing code.
mapleleaf
Re: html5 & JavaScript
Posted:
Tue Mar 29, 2011 9:03 am
by Gatis
Hi mapleleaf,
Thanks for bringing this up. I think we have missed this issue. Currently some internals depend on the fact that a JavaScript block starts with
<script language="JavaScript" type="text/javascript">
So if there will be only <script> instead, some functionality for JavaScript might not work well.
We will take a closer look.
As for the new version...
This week I will have a project meeting with Karlis, after his vacation. And then the picture will be more clear.
Kind regards,
Gatis
Re: html5 & JavaScript
Posted:
Wed Mar 30, 2011 8:24 am
by Gatis
Blumental may even consider in their next release to have an external link to validate the code particularly when it concerns html5 ie. similar to the manner of the use of Tidy.
Hmm.. I wonder if the
http://validator.w3.org/ service which is used already in WeBuilder won't fit? Just checked it, and it seems to validate HTML5 just fine (although, as it is stated on their site, this is only "Using experimental feature: HTML5 Conformance Checker.")
Gatis