<?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>6966</bug_id>
          
          <creation_ts>2009-05-27 11:50:31 +0000</creation_ts>
          <short_desc>LINK_TARGET_FORMAT-1: javascript URIs should not be reported</short_desc>
          <delta_ts>2009-05-29 14:24:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>mobileOK Basic checker</product>
          <component>Java Library</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="fd">fd</reporter>
          <assigned_to name="fd">fd</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25330</commentid>
    <comment_count>0</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-05-27 11:50:31 +0000</bug_when>
    <thetext>The test should apply to linked resources, defined in the spec as URIs with the scheme http and https:
 http://www.w3.org/TR/mobileOK-basic10-tests/#linked_resources

In particular, javascript URIs should not be treated as linked resources, and the warning should not be triggered by such URIs.

See for instance the result of the checker on:
 http://cnn.com

This bug was introduced in the overhauled version. The comment that describes the implementations of the ResourceExtractor interface claims:
[[
 URIs whose scheme is not supported are ignored. As far as mobileOK
 is concerned, this means that URIs must use the scheme HTTP or
 HTTPS, but note the code actually relies on the list of
 ResourceRetriever defined in TesterConfiguration.
]]

The comment is right, but the code actually doesn&apos;t check anything, and extracts all kinds of URIs. These URIs then appear in the moki document in the links, images, objects sections. They should not appear there</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25364</commentid>
    <comment_count>1</comment_count>
    <who name="fd">fd</who>
    <bug_when>2009-05-29 14:24:47 +0000</bug_when>
    <thetext>Extractors updated to ignore unknown schemes.

The ResourceExtractorFactory interface had to be completed with a isSchemeSupported method.

Ignoring an unknown scheme is what the mobileOK spec imposes but I still find it a bit strange not to raise at least a warning when e.g. an image whose URI is of an unknown scheme is encountered.

I raised a similar comment a long time ago in:
 http://lists.w3.org/Archives/Public/public-mobileok-checker/2008Jan/0125.html
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>