[Bug 18808] New: iframe closing tag detected within JavaScript string

https://www.w3.org/Bugs/Public/show_bug.cgi?id=18808

           Summary: iframe closing tag detected within JavaScript string
           Product: Validator
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: dave.null@w3.org
        ReportedBy: jimmy@codemagic.dk
         QAContact: www-validator-cvs@w3.org


The code below triggers the following validation error:
End tag for element "IFRAME" which is not open.

function smExternalModulesRegisterModule7663439()
{
    var module = "<iframe
src='https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Barcelona&aq=&sll=37.0625,-95.677068&sspn=59.206892,114.169922&ie=UTF8&hq=&hnear=Barcelona,+Province+of+Barcelona,+Catalonia,+Spain&ll=41.387917,2.169919&spn=105.385733,228.339844&t=h&z=3&output=embed'
width='600' height='500' scrolling='no' frameBorder='0' style='border: 1px
solid Silver' onload='' allowTransparency='true'></iframe>";

    document.getElementById('SMExternalModulesModule7663439').innerHTML =
module;
}

Test URL:
http://validator.w3.org/check?uri=http%3A%2F%2Ftinyurl.com%2F9tohp6b&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3

-- 
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 Sunday, 9 September 2012 10:17:35 UTC