<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>6337</bug_id>
          
          <creation_ts>2008-12-31 15:37:17 +0000</creation_ts>
          <short_desc>Incorrectly validating tags in javascript</short_desc>
          <delta_ts>2008-12-31 15:42:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Parser</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Stevens">sam</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>22868</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Stevens">sam</who>
    <bug_when>2008-12-31 15:37:17 +0000</bug_when>
    <thetext>The following code will invalidate a document. As it counts the template html as being part of the document.

&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;
window.onload = function() {
   getTwitters(&apos;Twitter&apos;, { 
     id: 14908033, 
     count: 5, 
     enableLinks: true, 
     ignoreReplies: true, 
     clearContents: true,
     template: &apos;&lt;a href=&quot;http://twitter.com/%user_screen_name%/statuses/%id%/&quot; class=&quot;tweetLink&quot;&gt;%time%&lt;/a&gt;&lt;span class=&quot;tweet&quot;&gt;%text%&lt;/span&gt;&apos;
   });
}
&lt;/script&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22869</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-12-31 15:42:26 +0000</bug_when>
    <thetext>Hi Sam,

I think you want:
http://validator.w3.org/docs/help.html#faq-javascript
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>