W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2013

[Bug 23597] New: Issue message whenever </script> does *not* end the script eleent.

From: <bugzilla@jessica.w3.org>
Date: Tue, 22 Oct 2013 18:27:30 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-23597-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=23597

            Bug ID: 23597
           Summary: Issue message whenever </script> does *not* end the
                    script eleent.
           Product: Validator (Nu)
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P3
         Component: General
          Assignee: mike+validator@w3.org
          Reporter: xn--mlform-iua@xn--mlform-iua.no
        QA Contact: www-validator-cvs@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org,
                    qbolec@gmail.com, robin@w3.org,
                    xn--mlform-iua@xn--mlform-iua.no
        Depends on: 23587

See bug #23587. 

Example fragment:

    <script><!--<script></script>

If, inside script, the validator sees the string “<script>” preceded by the
string ”<!--”, the validator should inform its users that the first occurrence
of the end tag (or string) </script> will be ignored/does not end the element.

This message should come *in addition* to the current messages.

Why should the validator give such a message? 

FIRSTLY: For the code
    <script><!--<script></script>
then most authors will expect the same result as for the code 
    <script><!--</script>
namely, that the script element will close as soon as the first </script>
string occurs. This can be justified e.g. by pointing to </style>, which in the
same situation behaves that way.

SECONDLY, Jakub Łopuszański’s example code in bug #23587
    <script><!--<script></script><!--cmt--><script></script>
looks like 3 items - a script, a comment and yet another script. And if you
test it in the NU validator, it will tell you that it is valid. However, the
problem is that NU validator considers those 3 nodes to be a single script
element which, again, is against authors’ expections.

THIRDLY, consequently, we must say that for "<!--<script>", then, due to
authors’ expectations, the validator does not always offer optimal validation,
sometimes it is even unreliable, and this unreliability should be highlighted
for the validator user.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Tuesday, 22 October 2013 18:27:32 UTC

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