[Bug 5132] Inserted code when validating snippets has its own errors

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5132





------- Comment #6 from ebrandon@cpha.ca  2008-02-22 15:28 -------
Hi ot@w3.org,

I think I know what the problem is - it occurs only when testing code snippets.

Below is what I tried to validate:

--------------------------------

<h2>Resolutions &amp; Motions</h2>
<ul>
  <li><a href="2000s/2006/final06e.pdf">2006 resolutions</a> (PDF: 25k)</li>
  <li><a href="2000s/2004/final04e.pdf">2004 resolutions</a> (PDF: 74k)</li>
  <li><a href="2000s/2003/final03e.pdf">2003 resolutions</a> (PDF: 145k )</li>
  <li><a href="2000s/2002/res2002e.pdf">2002 resolutions</a> (PDF: 313k)</li>
  <li><a href="2000s/2001/final01e.pdf">2001 resolutions</a> (PDF: 272k)</li>
  <li><a href="2000s/2000/PPLC_2000_eng.pdf">2000 resolutions</a> (PDF:
201k)</li>
  <li><a href="1990s/list.htm#1999">1999 resolutions</a></li>
  <li><a href="1990s/list.htm#1998">1998 resolutions</a></li>
  <li><a href="2000s/2002/res2002e.pdf">1997 resolutions</a> (PDF: 142k)</li>
  <li><a href="2000s/2002/res2002e.pdf">1996 resolutions</a> (PDF: 106k)</li>
  <li><a href="2000s/2002/res2002e.pdf">1995 resolutions</a> (PDF: 109k)</li>
  <li><a href="archive.htm">Archives</a></li>
</ul>

--------------------------------

And below are the settings (I had expanded the more options button):

--------------------------------

Use Doctype: XHTML 1.0 transitional

BUT

Validate HTML fragment was selected.

It should have ignored the Use Doctype.

--------------------------------

I recall that this problem occurred by my bouncing back and forth between
testing snippets and complete pages, and not changing the Use Doctype value
setting.  IO believe this is a simple fix to make, to simply ignore this with
code snippets.

Hope this helps

- Ed

Received on Friday, 22 February 2008 15:28:30 UTC