NewsBlur/vendor/feedvalidator/demo/docs/warning/NotInline.html

86 lines
3.7 KiB
HTML
Executable file

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>foo claims to be inline, but may contain HTML.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen">@import "../../css/common.css";
@import "../../css/documentation.css";</style>
<script type="text/javascript"><!-- --></script>
<link rel="start" href="http://feedvalidator.org/docs/" title="Home" />
</head>
<body>
<div id="logo">
<h1><a href="../../"><span id="feed"><span id="f">F</span><span id="e1">E</span><span id="e2">E</span></span><span id="d">D</span> Validator</a></h1>
<p>Documentation</p>
<a class="skip" href="#startnavigation">Jump to navigation</a>
</div> <!--logo-->
<div id="main">
<h2>Message</h2>
<div class="docbody">
<p><code>foo</code> claims to be inline, but may contain HTML.</p>
</div>
<h2>Explanation</h2>
<div class="docbody">
<p>This element appears to contain escaped HTML, but it has declared itself as "xhtml".</p>
</div>
<h2>Solution</h2>
<div class="docbody">
<p>Unless you intend for the markup to show, unescape the content or use the <code>type</code> attribute to declare that this is HTML.</p>
<ul>
<li><strong>Example:</strong>: entity escaped content declared as xhtml:
<blockquote><p><code>&lt;content <b>type="xhtml"</b>&gt;<b>&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;</b>My &amp;lt;b&amp;gt;Bold&amp;lt;/b&amp;gt; Content<b>&lt;/div&gt;</b>&lt;/content&gt;</code></p></blockquote>
<p>To correct, remove the <code>xhml:div</code> and change the
<code>type</code> attribute to <code>html</code>, thus:</p>
<blockquote><p><code>&lt;content <strong>type="html"</strong>&gt;My &amp;lt;b&amp;gt;Bold&amp;lt;/b&amp;gt; Title&lt;/content&gt;</code></p></blockquote>
</li>
<li><strong>Example:</strong>: CDATA escaped content declared as xhtml:
<blockquote><p><code>&lt;content type="xhtml"&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;<b>&lt;![CDATA[</b>My &lt;b&gt;Bold&lt;/b&gt; Content<b>]]&gt;</b>&lt;/div&gt;&lt;/content&gt;</code></p></blockquote>
<p>To correct, remove the <code>CDATA</code>, thus:</p>
<blockquote><p><code>&lt;content type="xhtml"&gt;&lt;div xmlns="http://www.w3.org/1999/xhtml"&gt;My &lt;b&gt;Bold&lt;/b&gt; Content&lt;/div&gt;&lt;/content&gt;</code></p></blockquote>
</li>
</ul>
</div>
<h2>Not clear? Disagree?</h2>
<div class="docbody">
<p>Let us know on the <a href="http://lists.sourceforge.net/lists/listinfo/feedvalidator-users">feedvalidator-users</a> discussion list!</p>
</div>
</div><!--main-->
<div class="centered">
<a name="startnavigation" id="startnavigation"></a>
<div class="navbarWrapper">
<div class="navbarContent">
<img class="borderTL" src="../../images/borderTL.gif" alt="" width="14" height="14" />
<img class="borderTR" src="../../images/borderTR.gif" alt="" width="14" height="14" />
<p>
<a href="../../">Home</a> &middot;
<a href="../../about.html">About</a> &middot;
<a href="../../news/">News</a> &middot;
<a href="../../docs/">Docs</a> &middot;
<a href="../../terms.html">Terms</a>
</p>
<div class="roundedCornerSpacer">&nbsp;</div>
</div><!-- .content -->
<div class="bottomCorners">
<img class="borderBL" src="../../images/borderBL.gif" alt="" width="14" height="14" />
<img class="borderBR" src="../../images/borderBR.gif" alt="" width="14" height="14" />
</div><!-- .bottomCorners -->
</div><!-- .contentWrapper -->
</div><!-- .centered -->
<div class="centered">
<address>Copyright &copy; 2002-4 <a href="http://diveintomark.org/">Mark Pilgrim</a> and <a href="http://www.intertwingly.net/blog/">Sam Ruby</a></address>
</div>
</body>
</html>