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 11830 - not closing an element correctly
Summary: not closing an element correctly
Status: RESOLVED INVALID
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-21 08:12 UTC by Bart Nooijens
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Bart Nooijens 2011-01-21 08:12:51 UTC
Here is the source code:

<div id="contact1"><img alt="contact" src="http://www.bartnooijens.nl/images/contact.png"
onMouseOver="this.src=http://www.bartnooijens.nl/images/contact_over.png"
onMouseOut="this.src=http://www.bartnooijens.nl/images/contact.png" ></div>


Here is the error code i get:

Line 44, Column 69: Bad value this.src=http://www.bartnooijens.nl/images/contact_over.png for attribute onmouseover on element img: missing ; before statement

onMouseOut="this.src=http://www.bartnooijens.nl/images/contact.png" ></div>

I'm quite sure im closing it correctly.
Comment 1 Michael[tm] Smith 2011-02-08 08:55:09 UTC
http://www.bartnooijens.nl/images/contact_over.png and http://www.bartnooijens.nl/images/contact.png are string literals, so you need to quote them:

<div id="contact1"><img alt="contact"
src="http://www.bartnooijens.nl/images/contact.png"
onMouseOver="this.src = 'http://www.bartnooijens.nl/images/contact_over.png'"
onMouseOut="this.src = 'http://www.bartnooijens.nl/images/contact.png'" ></div>