This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18808 - iframe closing tag detected within JavaScript string
Summary: iframe closing tag detected within JavaScript string
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: Parser (show other bugs)
Version: HEAD
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-09 10:17 UTC by jimmy
Modified: 2012-09-13 17:47 UTC (History)
0 users

See Also:


Attachments

Description jimmy 2012-09-09 10:17:34 UTC
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
Comment 1 Ville Skyttä 2012-09-13 15:38:25 UTC
The error message given by the validator this link:
http://validator.w3.org/docs/help.html#faq-javascript
-> http://www.htmlhelp.com/tools/validator/problems.html#script
Comment 2 jimmy 2012-09-13 17:47:14 UTC
Thank  you for enlighting me.

(In reply to comment #1)
> The error message given by the validator this link:
> http://validator.w3.org/docs/help.html#faq-javascript
> -> http://www.htmlhelp.com/tools/validator/problems.html#script