Sounds like a reasonable argument, but I'm also not that up on the details. Philippe?<br><br><div class="gmail_quote">On Thu, Nov 22, 2012 at 9:55 PM, Paul DeBruicker <span dir="ltr"><<a href="mailto:pdebruic@gmail.com" target="_blank">pdebruic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oh sure I just meant that if that's what it takes to actually emit valid html5 pages from within seaside then maybe it should/could be part of the #beHtml5 method in the default Seaside-HTML5 package so everyone can use it without having to find this thread.<br>
<br>
I just don't know enough to be able to discern whether the changes to the root you posted cover everything that needs to be done or not.<br>
<br>
Anyways. Thanks for posting it<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
On Nov 22, 2012, at 1:10 PM, "Boris Popov, DeepCove Labs" <<a href="mailto:boris@deepcovelabs.com">boris@deepcovelabs.com</a>> wrote:<br>
<br>
> Paul,<br>
><br>
> No specific reason other than that we use a common library to configure our roots to avoid unnecessary method overrides.<br>
><br>
> -Boris<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a> [mailto:<a href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>] On Behalf Of Paul DeBruicker<br>
> Sent: Thursday, November 22, 2012 4:08 PM<br>
> To: Seaside - general discussion<br>
> Subject: Re: [Seaside] HTML5 and RenderLoopContinuation<br>
><br>
> Is there any reason to not make the #beHtml5 method do all the things in your configuration?<br>
><br>
><br>
><br>
><br>
> On 11/22/2012 05:18 AM, Boris Popov, DeepCove Labs wrote:<br>
>> Tobias,<br>
>><br>
>> This is what we do in our shared library class to configure all roots for HTML5,<br>
>><br>
>> aHtmlRoot beHtml5.<br>
>> aHtmlRoot headElements copy do: [:ea | (ea isKindOf: WAMetaElement) ifTrue: [aHtmlRoot headElements remove: ea]].<br>
>> (aHtmlRoot htmlAttributes)<br>
>> addClass: 'no-js';<br>
>> removeKey: 'xmlns';<br>
>> removeKey: 'xml:lang';<br>
>> removeKey: 'lang'.<br>
>> aHtmlRoot headElements addFirst: ((WAMetaElement root: aHtmlRoot)<br>
>> attributeAt: 'charset' put: 'utf-8';<br>
>> yourself).<br>
>> (aHtmlRoot meta)<br>
>> responseHeaderName: 'X-UA-Compatible';<br>
>> content: 'IE=edge,chrome=1'.<br>
>><br>
>> -Boris<br>
>><br>
>><br>
>> -----Original Message-----<br>
>> From: <a href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a> [mailto:<a href="mailto:seaside-bounces@lists.squeakfoundation.org">seaside-bounces@lists.squeakfoundation.org</a>] On Behalf Of Tobias Pape<br>
>> Sent: Thursday, November 22, 2012 5:08 AM<br>
>> To: Seaside - general discussion<br>
>> Subject: [Seaside] HTML5 and RenderLoopContinuation<br>
>><br>
>> Hi<br>
>><br>
>> I just played with Seaside and HTML5,<br>
>> however, the resulting html is not HTML5 compatible.<br>
>> The validator says<br>
>> Line 2, Column 249: Bad value Content-Script-Type for attribute http-equiv on element meta.<br>
>><br>
>> which is the result of<br>
>><br>
>> WARenderLoopContinuation>>updateRoot:<br>
>> "..."<br>
>> anHtmlRoot meta contentScriptType: WAMimeType textJavascript.<br>
>> anHtmlRoot htmlAttributes<br>
>> at: 'xmlns' put: '<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>';<br>
>> at: 'xml:lang' put: 'en';<br>
>> at: 'lang' put: 'en'.<br>
>> "..."<br>
>><br>
>> The content script type is incorrect as of HTML5.<br>
>> (see answer here:<br>
>> <a href="http://stackoverflow.com/questions/6320084/why-is-meta-http-equiv-content-script-type-mostly-unused#8864160" target="_blank">http://stackoverflow.com/questions/6320084/why-is-meta-http-equiv-content-script-type-mostly-unused#8864160</a><br>
>> ).<br>
>> Also, 'xml:lang' is accepted for compatibility only, and 'xmlns' is incorrect for<br>
>> HTML5 too (while silently ignored).<br>
>><br>
>> Long story short, can we optionalize this part?<br>
>> I can work around the xml:lang and xmlns-attributes in a subsequent #updateRoot: but I cannot undo the content script type without editing WARenderLoopContinuation>>updateRoot:<br>
>><br>
>> If you want to, I can try to come up with something.<br>
>><br>
>> Best<br>
>> -tobias<br>
>><br>
>><br>
>> _______________________________________________<br>
>> seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>> _______________________________________________<br>
>> seaside mailing list<br>
>> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
>> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
>><br>
><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
> _______________________________________________<br>
> seaside mailing list<br>
> <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
> <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></div></blockquote></div><br>