W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2012

[Bug 18673] New: false alarm </script error message.

From: <bugzilla@jessica.w3.org>
Date: Fri, 24 Aug 2012 01:25:50 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-18673-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18673

           Summary: false alarm </script error message.
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: dave.null@w3.org
        ReportedBy: roedyg@mindprod.com
         QAContact: www-validator-cvs@w3.org


Consider http://mindprod.com/index.html

There is a line 46.

<script type="text/javascript">if
(document.URL.indexOf("file:")!=0){document.writeln("<div
class=\"g-plusone\"><"+"/div>");}</script>


Note the way I had to artificially break the string in two to avoid a false
error.
I would have more naturally written it:

<script type="text/javascript">if
(document.URL.indexOf("file:")!=0){document.writeln("<div
class=\"g-plusone\"></div>");}</script>

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Friday, 24 August 2012 01:25:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:51 UTC