This project is archived and is in readonly mode.

#613 ✓invalid
SamGoody

dot messing up getElements()

Reported by SamGoody | March 6th, 2009 @ 10:59 AM | in 2.0 (closed)

If the class or id has a dot, getElements throws an error: expression is undefined

example code:


<!doctype>
<html>
<head>
	<title>dotGetElement bug</title>
	<script src="mootools.js"></script>
	<script>
		window.addEvent('load', function(){ $('a.1').getElements() });
	</script>
</head>
<body>
	<div id="a.1"><span>hello</span></div>
</body>
</html>

dots within class/id names are valid:
http://www.w3.org/TR/html4/types.html#type-name

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages