<?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>21372</bug_id>
          
          <creation_ts>2013-03-22 09:41:10 +0000</creation_ts>
          <short_desc>Parsing URLs inside &lt;script&gt; tags</short_desc>
          <delta_ts>2013-03-25 20:08:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>LinkChecker</product>
          <component>checklink</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="WASD42">wpoi</reporter>
          <assigned_to name="Ville Skyttä">ville.skytta</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>84832</commentid>
    <comment_count>0</comment_count>
    <who name="WASD42">wpoi</who>
    <bug_when>2013-03-22 09:41:10 +0000</bug_when>
    <thetext>LinkChecker tries to check links he finds inside &lt;script&gt; tags. In general it&apos;s a normal operation but it could be broken with following code:

&lt;script type=&apos;text/javascript&apos;&gt;(function(){var d=document;d.write(&apos;&lt;iframe src=&quot;&apos;+&apos;http://some.site.com/&quot;&gt;&lt;/iframe&gt;&apos;);})();&lt;/script&gt;

In this situation LinkChecker will try to resolve following URL: &apos;+&apos;http://some.site.com/

That&apos;s incorrect and should be skipped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84945</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2013-03-25 20:08:53 +0000</bug_when>
    <thetext>That&apos;s right, in XHTML mode it does but doesn&apos;t in HTML mode, and that&apos;s the correct behavior. There&apos;s a good writeup on the subject at http://dorward.me.uk/www/comments-cdata/

See also http://www.w3.org/TR/xhtml1/#C_4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>