NewsBlur-viq/vendor/feedvalidator/demo/docs-xml/warning/NotInline.xml

32 lines
1.5 KiB
XML
Raw Normal View History

<fvdoc>
<div xmlns='http://www.w3.org/1999/xhtml'>
<div id='message'>
<p><code>foo</code> claims to be inline, but may contain HTML.</p>
</div>
<div id='explanation'>
<p>This element appears to contain escaped HTML, but it has declared itself as "xhtml".</p>
</div>
<div id='solution'>
<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>
</div>
</fvdoc>