[Seaside] RE: HTML5 and RenderLoopContinuation
Helene Bilbo
thereluctantprogrammer at fastmail.fm
Fri Nov 23 11:23:49 UTC 2012
Boris Popov, DeepCove Labs (SNN) wrote
> This is what we do in our shared library class to configure all roots for
> HTML5,
>
> aHtmlRoot beHtml5.
> aHtmlRoot headElements copy do: [:ea | (ea isKindOf: WAMetaElement)
> ifTrue: [aHtmlRoot headElements remove: ea]].
> (aHtmlRoot htmlAttributes)
> addClass: 'no-js';
> removeKey: 'xmlns';
> removeKey: 'xml:lang';
> removeKey: 'lang'.
> aHtmlRoot headElements addFirst: ((WAMetaElement root: aHtmlRoot)
> attributeAt: 'charset' put: 'utf-8';
> yourself).
> (aHtmlRoot meta)
> responseHeaderName: 'X-UA-Compatible';
> content: 'IE=edge,chrome=1'.
Hi, thank you, this works nice, but for some reason it produces:
<meta charset="utf-8" content="">
which is not valid ("Attribute content not allowed on element meta at this
point."), instead of:
<meta charset="utf-8" />
Has anybody a hint, how to change this?
--
View this message in context: http://forum.world.st/HTML5-and-RenderLoopContinuation-tp4656351p4656468.html
Sent from the Seaside General mailing list archive at Nabble.com.
More information about the seaside
mailing list