[Bug 949] New: incorrect "End tag for element"-error in JavaScript

http://www.w3.org/Bugs/Public/show_bug.cgi?id=949

           Summary: incorrect "End tag for element"-error in JavaScript
           Product: Validator
           Version: 0.7.0
          Platform: Other
               URL: http://www.bouwgilde-zzp.net/cgi-bin/zzp-cust-login.php
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: link@pobox.com
        ReportedBy: P.Elbertse@ppros.nl
         QAContact: www-validator-cvs@w3.org


When a javascript string is built up with the "+"-sign, the HTML validation 
will not be done upon the complete string, but on the substrings. For this 
reason:

myHint.innerHTML     = "<center><small>" + text + "</small></center>" ;

Will result in the following errors like:

------
Line 15, column 68: end tag for element "CENTER" which is not open

... = "<center><small>" + text + "</small></center>" ;
------



------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

Received on Monday, 22 November 2004 10:56:05 UTC