layout/reftests/bugs/711359-1.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
michael@0 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
michael@0 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
michael@0 4 <head>
michael@0 5 <script>
michael@0 6 var lastLang = "";
michael@0 7 function LangSelect(aLang) {
michael@0 8 var tbody = document.getElementById("l10ntbody");
michael@0 9 var child = tbody.firstChild;
michael@0 10 while (child) {
michael@0 11 if (child.nodeType == Node.ELEMENT_NODE) {
michael@0 12 if (aLang == "*" || aLang == child.getAttribute("language"))
michael@0 13 child.removeAttribute("style");
michael@0 14 else
michael@0 15 child.setAttribute("style", "display: none");
michael@0 16 }
michael@0 17 child = child.nextSibling;
michael@0 18 }
michael@0 19 }
michael@0 20 </script>
michael@0 21 </head>
michael@0 22
michael@0 23 <body onload="LangSelect('cs');">
michael@0 24 <table style="border-collapse: collapse;" border="1">
michael@0 25 <tbody id="l10ntbody">
michael@0 26 <tr style="display: none;" language="cs"><td>&nbsp;</td></tr>
michael@0 27 <tr style="display: none;" language="cs"><td>&nbsp;</td></tr>
michael@0 28 <tr style="display: none;" language="cs"><td>&nbsp;</td></tr>
michael@0 29 </tbody>
michael@0 30 </table>
michael@0 31 </body>
michael@0 32 </html>

mercurial