comparison lib/js/urweb.js @ 1091:6e5463a53c3c

Alter JavaScript lastParent() to play nice with Firebug
author Adam Chlipala <adamc@hcoop.net>
date Fri, 25 Dec 2009 09:24:21 -0500
parents e81434513720
children 118ab9641a64
comparison
equal deleted inserted replaced
1090:e77079953308 1091:6e5463a53c3c
296 function scur(s) { 296 function scur(s) {
297 return execF(s, null)._data; 297 return execF(s, null)._data;
298 } 298 }
299 299
300 function lastParent() { 300 function lastParent() {
301 var pos = document; 301 var pos = document.body;
302 302
303 while (pos.lastChild && pos.lastChild.nodeType == 1) 303 while (pos.lastChild && pos.lastChild.nodeType == 1)
304 pos = pos.lastChild; 304 pos = pos.lastChild;
305 305
306 pos = pos.parentNode; 306 pos = pos.parentNode;