| Pages: [1] |
|
|
Author |
Topic: it modifies some code - why? (Read 717 times) |
|
nineusa
Posts: 1
|
Hello'
I have this code in a webpage which is part of an external "widget" that is loaded dynamically:
<noscript id="OTNoScript">
<div id='NSWidgetLogo'> <img
src="http://www.opentable.com/dcwidget/DCWidgetBadge_2009.gif">
</div>
</noscript>
after I open the page in html view I can see the code being rewritten like this:
<noscript id="OTNoScript">
&lt;div id=&#39;NSWidgetLogo&#39;&gt; &lt;img src=&quot;http://www.opentable.com/dcwidget/DCWidgetBadge_2009.gif&quot; mce_src=&quot;http://www.opentable.com/dcwidget/DCWidgetBadge_2009.gif&quot;&gt;&lt;br /&gt;
&lt;/div&gt;
</noscript>
Why it is and how to prevent it
Thanks for helping.
|
|
|
|
|
|
foscolo
Posts: 2
|
I'm a bit of a W3C validadation obsessive. A valid page, once edited through Snippetmaster, may no longer be valid. Here's an example from valdiation report of a page edited in Snippetmaster which was previously valid:
The <br /> has appeared - it's not necessary, as the text is already inside <p> ... </p>. More to the point, it's the XHTML <br /> in an HTML 4 document (so it should be <br>), and that's why it doesn't validate. (I think, anyway - I'm not a total expert on this). There are nearly 40 more examples of this in the same report.
HOWEVER... the Snippetmaster-edited page displays absolutely fine in all browsers I've tested, so this is really only about being able to tick the "valid code" box.
Anyway, is there a way around this, or is just an avoidable fact of life if you want to do clever stuff like this with php?
|
|
|
|
|
|
|
Pages: [1]
|
|
|
|