#1217 ✓wont_fix
Christopher Blum

Prototype 1.7 doesn't work when compiled via closure compiler

Reported by Christopher Blum | February 15th, 2011 @ 02:35 PM

When prototype 1.7 gets minified via closure compiler (in simple/default mode), the following line (#1842 in prototype.js):

    if (!Node) var Node = { };

gets converted to:


which causes a js error in IE 6-8: "'Node' is undefined"

This issue only affects 1.7 (1.6.1 is fine).
The problem was introduced with this commit: https://github.com/sstephenson/prototype/commit/475f1797e13c21891e1...

YUICompressor isn't affected.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

The Prototype JavaScript library.

Shared Ticket Bins