author Doug Turner <>
Fri, 11 Jul 2008 18:35:03 -0700
changeset 15829 27942c109154936fa4fb73c9d1c8b3fd0c8179d3
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 74315 1188456710819d4606e74396be333ead9fe63261
permissions -rw-r--r--
Initial implementation of Gelocation. Bug 437948. Relanded after fixing memory leaks

<html xmlns="">
Tests by Sam Ruby - WTFPL License (
  <!-- XHTML needs the packed version -->
  <script type="text/javascript" src="/MochiKit/packed.js"/>      
  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"/>   
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<a  target="_blank" href="">Mozilla Bug 339350</a>
<div style="display: none">
  <table border="1" cellspacing="0">

  <td><div id="i1"/></td>
  <td style="background:yellow"><div id="i2"/></td>
  <td><div id="i3"/></td>
  <td><div id="t1"/></td>
  <td><div id="t2"/></td>
  <td><div id="t3"/></td>
<pre id="test">
<script type="text/javascript">
var text1 = 'foo bar';
var text2 = 'foo [bar]';
var text3 = 'foo {bar}';

<!-- This is the long way to write this stuff, 
     you can use MochiKit functions too -->
document.getElementById('i1').innerHTML = text1;
document.getElementById('i2').innerHTML = text2;
document.getElementById('i3').innerHTML = text3;


<!-- The is() function is one way to add a test -->
is(document.getElementById('i2').innerHTML, text2, "XHTML innerHTML with trailing brackets ']]'");