tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/12261-how-to-preserve-xmlns-in-the-html-tagCascade CMS: Discussion 2013-08-20T01:35:20Ztag:help-archives.hannonhill.com,2010-02-09:Comment/253194392013-02-25T23:24:37Z2013-02-25T23:24:37ZHow to preserve xmlns in the html tag?<div><p>In the template, I have the code <code><html lang="en"
xmlns:fb="http://ogp.me/ns/fb#"></code>. But when published, the
tag is <code><html lang="en"></code>. How can I keep Cascade
from stripping out that specific section of code?</p>
<p>Thanks!</p></div>Crystaltag:help-archives.hannonhill.com,2010-02-09:Comment/253194392013-02-26T13:45:17Z2013-02-26T13:45:17ZHow to preserve xmlns in the html tag?<div><p>Hi Crystal,</p>
<p>I would like to do some local testing, what version of Cascade
are you experiencing this behavior in?</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/253194392013-02-26T14:09:33Z2013-02-26T14:09:33ZHow to preserve xmlns in the html tag?<div><p>Thanks for looking into the issue Ryan. We are running Cascade
Server v6.8.3.1.</p></div>Crystaltag:help-archives.hannonhill.com,2010-02-09:Comment/253194392013-02-27T18:02:21Z2013-02-27T18:02:21ZHow to preserve xmlns in the html tag?<div><p>Hi Crystal,</p>
<p>After speaking with the developers, it looks like the any
namespace beginning with <code>xmlns:</code> will be removed if
there are no elements within the document that use the
namespace.</p>
<p>As a workaround, you could add something like
<code><fb:root/></code> to your Template or Page HTML and the
namespace should be left alone when the Page renders or is
published.</p>
<p>That being said, do you intend to add the namespace, but not add
elements that use this namespace?</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/253194392013-02-27T18:19:27Z2013-02-27T18:19:27ZHow to preserve xmlns in the html tag?<div><p>Correct. Facebook recommends adding that namespace to the HTML
tag, but the code we are using for our social media bar doesn't
reference that namespace anywhere.</p>
<p>That said, your suggestion worked! Just added
<code><fb:root/></code> at the end of our template and the
new Facebook Like/Comment button now magically works. Thanks!</p></div>Crystaltag:help-archives.hannonhill.com,2010-02-09:Comment/253194392013-02-27T20:45:15Z2013-02-27T20:45:15ZHow to preserve xmlns in the html tag?<div><p>Thank you for the follow up and additional information, Crystal.
Glad to hear adding that empty element did the trick.</p>
<p>I have logged the removal of the namespace as a <a href=
"https://hannonhill.jira.com/browse/CSI-532">known defect</a> since
there are circumstances where a namespace may be required, but an
element that uses the namespace isn't. Feel free to use this link
to track the progress of this issue to see if it has been resolved
in a future release of Cascade.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Thanks!</p></div>Ryan Griffith