From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- dom/xml/test/old/toc/book.css | 137 ++++++++++++++++++ dom/xml/test/old/toc/irslogo.gif | Bin 0 -> 2605 bytes dom/xml/test/old/toc/minus.gif | Bin 0 -> 85 bytes dom/xml/test/old/toc/plus.gif | Bin 0 -> 88 bytes dom/xml/test/old/toc/rights.xml | 292 +++++++++++++++++++++++++++++++++++++++ dom/xml/test/old/toc/toc.css | 77 +++++++++++ dom/xml/test/old/toc/toc.js | 117 ++++++++++++++++ 7 files changed, 623 insertions(+) create mode 100644 dom/xml/test/old/toc/book.css create mode 100644 dom/xml/test/old/toc/irslogo.gif create mode 100644 dom/xml/test/old/toc/minus.gif create mode 100644 dom/xml/test/old/toc/plus.gif create mode 100644 dom/xml/test/old/toc/rights.xml create mode 100644 dom/xml/test/old/toc/toc.css create mode 100644 dom/xml/test/old/toc/toc.js (limited to 'dom/xml/test/old/toc') diff --git a/dom/xml/test/old/toc/book.css b/dom/xml/test/old/toc/book.css new file mode 100644 index 000000000..778c4244c --- /dev/null +++ b/dom/xml/test/old/toc/book.css @@ -0,0 +1,137 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* The book style must be the first style for our JavaScript to work */ +book { + display: block; + padding-left: 2em; + padding-right: 2em; + padding-top: 8px; + font-size: 12pt; + background-color: lightyellow; + font-family: Arial; +} + +book title { + font-weight: bold; + font-size: 24pt; + display: block; + text-align: center; + margin-top: 12pt; + margin-bottom: 3pt; +} + +book subtitle { + display: block; + font-size:12pt; + text-align: center; +} + +book abstract { + display: block; + margin-top: 3pt; +} + +input { + display: block; + margin-left: auto; + margin-right: auto; +} + +chapter { + display: block; +} + +chapter title { + font-weight: bold; + font-size: 16pt; + display: block; + text-align: left; + margin-top: 12pt; + margin-bottom: 3pt; +} + +section { + display: block; +} + +section title { + display: block; + font-size: 10pt; + text-align: left; + margin-top: 12pt; + margin-bottom: 3pt; +} + +contents { + display: block; +} + +para { + display: block; + margin-bottom: auto; + margin-top: auto; + font-size:11pt; +} + +link { + display: inline; + color: blue; + text-decoration: underline; + cursor: pointer; +} + +list { + display: block; + margin-right: 0; + margin-bottom: auto; + margin-top: auto; + list-style-type: disc; + margin-left: 40px; +} + +listitem { + display: list-item; + list-style-position: inside; +} + +emph { + font-style: italic; + font-weight: bold; +} + +ref { + font-style: italic; +} + +heading { + font-weight: bold; +} + +navbar { + font-family: Arial; + font-size: 10pt; + display: block; + float: right; + background-color: #CCE6F3; + color: darkblue; + width: 10em; + margin-right: 0.5em; +} + +navbar title { + font-size: 10pt; + display: block; + background-color: black; + color: white; + margin-bottom:0px; +} + +navbar content { + display: block; + padding: 0.3em; + border: 1px solid black; + font-size: 9pt; +} + diff --git a/dom/xml/test/old/toc/irslogo.gif b/dom/xml/test/old/toc/irslogo.gif new file mode 100644 index 000000000..daab0ca3a Binary files /dev/null and b/dom/xml/test/old/toc/irslogo.gif differ diff --git a/dom/xml/test/old/toc/minus.gif b/dom/xml/test/old/toc/minus.gif new file mode 100644 index 000000000..8adf8d6ad Binary files /dev/null and b/dom/xml/test/old/toc/minus.gif differ diff --git a/dom/xml/test/old/toc/plus.gif b/dom/xml/test/old/toc/plus.gif new file mode 100644 index 000000000..55446e34c Binary files /dev/null and b/dom/xml/test/old/toc/plus.gif differ diff --git a/dom/xml/test/old/toc/rights.xml b/dom/xml/test/old/toc/rights.xml new file mode 100644 index 000000000..520eef3de --- /dev/null +++ b/dom/xml/test/old/toc/rights.xml @@ -0,0 +1,292 @@ + + + + + + + +]> + + + + + + Table of contents + + To toggle the Table of Contents, click on this button + + + + + Highlights of 1999 Tax Changes + (Rev. December 1999) + + + + Tax Changes for Individuals + +
+ + Child Tax Credit Increased + + +The maximum child tax credit for each qualifying child will increase from $400 to $500 in 1999. + + +
+
+ + Standard Mileage Rate + + +Beginning April 1, 1999, the optional standard mileage rate for operating your carfor business decreases to 31 cents a mile for each business mile. Until then, the business standard mileage rate of 32 1/2 cents per mile that was in effect for 1998 will continue to apply. + + +
+
+ + Estimated Tax Safe Harbor for Higher Income Individuals + + +For estimated tax payments for tax years beginning in 1999, the safe harbor for higher income individuals (other than farmers and fishermen) has been modified. If your 1998 adjusted gross income was more than $150,000 ($75,000 if you aremarried filing a separate return for 1999), you will have to pay the smaller of 90% of your expected tax for 1999 or 105% (up from 100%) of the tax shown on your 1998 return (provided your 1998 return covered all 12 months) to avoid an estimated tax penalty. + + +For more information on estimated tax, see + Publication 505. + + +
+
+ + Self-Employed Health Insurance Deduction + + +For 1999, the health insurance deduction for the self-employed is increased from 45% to 60% of the amount you pay for medical insurance for yourself and your family. For more information, see chapter 10 in + Publication 535. + + +
+
+ + Social Security and Medicare Taxes + + +For 1999, the employer and employee will continue to pay: + + +1.6.2% each for social security tax (old-age, survivors, and disability insurance), and + + +2.1.45% each for Medicare tax (hospital insurance). + + + + + Wage limits. +For social security tax, the maximum amount of 1999 wages subject to the tax has increased to $72,600. For Medicare tax, all covered 1999 wages are subject to the tax. There is no wage base limit. For information about these taxes, see + Publication 15, Circular E, Employer's Tax Guide. + + +
+
+ + Self-Employment Tax + + +The self-employment tax rate on net earnings remains the same for calendar year1999. This rate, 15.3%, is a total of 12.4% for social security (old-age, survivors, and disability insurance), and 2.9% for Medicare (hospital insurance). + + +The maximum amount subject to the social security part for tax years beginning in 1999 has increased to $72,600. All net earnings of at least $400 are subject to the Medicare part. + + +
+
+
+ + + + Tax Changes for Businesses + +
+ + Social Security and Medicare Taxes + + +For 1999, the employer and employee will continue to pay: + + +6.2% each for social security tax (old-age, survivors, and disability insurance), and + + +1.45% each for Medicare tax (hospital insurance). + + + + +Wage limits. For social security tax, the maximum amount of 1999 wages subject to the tax has increased to $72,600. For Medicare tax, all covered 1999 wages are subject to the tax. There is no wage base limit. For information about these taxes and amounts to withhold, see +Publication 15, Circular E, Employer's TaxGuide. + + +
+
+ + Employment Tax Deposits + + +Under certain circumstances, the IRS can waive the penalty for a first-time depositor's inadvertent failure to timely deposit employment taxes. For deposits required to be made after January 18, 1999, this waiver is expanded to include the first deposit required to be made after a required change in frequency of a taxpayer's deposits. + + +
+
+ + Electronic Deposit of Taxes + + +If you were first required to deposit taxes by electronic funds transfer after June 30, 1997, the IRS will not impose the penalty for not doing so before July 1, 1999. Previously, the IRS had waived the penalty through December 31, 1998. For information about depositing taxes electronically, see Publication 15. + + +
+
+ + 941 TeleFile + + +Beginning with the first quarter of 1998, many employers were able to file Form941 by phone, toll free. If you receive 941 TeleFile with your Form 941 package, check page TEL-1 of the 941 TeleFile Instructions to see if you qualify for this quick, convenient, and easy method of filing. + + +
+
+ + 941 On-Line + + +In 1998, a limited number of employers were allowed to file Form 941 using commercially available software to create the return and then transmitting the return electronically to IRS through a third party. 941 On-Line uses Electronic Data Interchange (EDI) format. In 1999, IRS expects to make the 941 On-Line filing option available nationwide. + + +
+
+ + Self-Employment Tax + + +The self-employment tax rate on net earnings remains the same for calendar year 1999. This rate, 15.3%, is a total of 12.4% for social security (old-age, survivors,and disability insurance), and 2.9% for Medicare (hospital insurance). + + +The maximum amount subject to the social security part for tax years beginning in 1999 has increased to $72,600. All net earnings of at least $400 are subject to the Medicare part. + + +
+
+
+ + + + IRA and other Retirement Plans + +
+ + Hardship Distributions + + +Beginning in 1999, hardship distributions from 401(k) plans and 403(b) plans are not eligible rollover distributions. They cannot be rolled over into a traditional IRA. For more information on traditional IRAs, see Publication 590. + + +
+
+
+ + + + Gift and Estate Taxes + +
+ + New Deduction From Gross Estate + + +For estates of decedents dying after 1997, the executor can elect to deduct the adjusted value of a qualified family-owned business interest, up to a limited amount, from the gross estate. For more information, see section 2057 of the Internal Revenue Code and the instructions for Schedule T, Form 706, United States Estate (and Generation-Skipping Transfer) Tax Return. + + +
+
+ + Suit for Refund + + +Effective July 23, 1998, an executor no longer needs to wait until all the installment payments have been made before filing a suit for refund with a federal district court or the U.S. Court of Federal Claims if the following conditions are met. + + +The estate consists largely of an interest in a closely-held business. + + +The estate elected to make tax payments through the installment method. + + + + +However, all of the following must be true before a suit can be filed. + + +All installment payments due on or before the date the suit is filed have been made. + + +No accelerated installment payments have been made. + + +No Tax Court case is pending with respect to any estate tax liability. + + +The time for petitioning the Tax Court has passed if a notice of deficiency was issued to the estate regarding its liability for estate tax. + + +No proceeding is pending for a declaratory judgment by the Tax Court on whether the estate is eligible to pay tax in installments. + + + + +In addition, the executor must not: + + +Include any previously litigated issues in the current suit for refund, and + + +Discontinue making timely installment payments while the court considers the suit for refund. + + + + +
+
+
+ + + + Excise Tax + +
+ + Air Transportation Taxes + + +For 1999, the tax on the use of international air travel facilities will be $12.20 for both arrivals and departures. In the case of air transportation between the continental United States and Alaska or between Alaska and Hawaii, the use-of-international-facilities tax on departures will be $6.10. + + +
+
+ + Luxury Tax + + +For 1999, the luxury tax on a passenger vehicle is reduced from 7% to 6% of the amount of the sales price that exceeds the base amount. The base amount for 1999 is $36,000. + + +The base amount is increased for electric vehicles and clean-fuel vehicles. See Publication 510 for information on these amounts. + + +
+
+
+ +
diff --git a/dom/xml/test/old/toc/toc.css b/dom/xml/test/old/toc/toc.css new file mode 100644 index 000000000..99c0c9d32 --- /dev/null +++ b/dom/xml/test/old/toc/toc.css @@ -0,0 +1,77 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +toc { + position:fixed; + top:0; + left:0; + width:12em; + height:100%; + border-right: 1px solid black; + background-color: #CCE6F3; + font-family: Arial; + overflow:auto; + color: darkblue; +} + +toc > title { + display: block; + font-size:12pt; + font-weight: bold; + background-color: black; + color:white; +} + +toclink:visited { + color: purple; +} + +toclink:active { + color: red; +} + +level1 { + display: block; + font-weight:bold; + font-size:12pt; + margin-left: 4px; + margin-bottom: 2px; +} + +level1 > toclink { + list-style-position: inside; + text-decoration: none; + color: darkblue; +} + +level2 { + display: block; + font-size:11pt; + margin-left: 8px; + margin-bottom: 2px; +} + +level2 > toclink { + list-style-position: inside; + text-decoration: none; + color: darkblue; +} + +level3 { + display: list-item; + font-size: 8pt; + margin-left: 12px; + margin-bottom: 2px; +} + +level3 > toclink { + list-style-position: inside; + text-decoration: none; + color: darkblue; +} + +toc img { + margin-right: 1em; +} + diff --git a/dom/xml/test/old/toc/toc.js b/dom/xml/test/old/toc/toc.js new file mode 100644 index 000000000..9825dbe5f --- /dev/null +++ b/dom/xml/test/old/toc/toc.js @@ -0,0 +1,117 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +// Event handler for display togglers in Table of Contents +function toggleDisplay(event) +{ + if (event.target.localName != "img") + return; + var img = event.target; + var div = img.nextSibling.nextSibling; + + // Change the display: property of the container to + // hide and show the container. + if (div.style.display == "none") { + div.style.display = "block"; + img.src = "minus.gif"; + } + else { + div.style.display = "none"; + img.src = "plus.gif"; + } +} + +// Function that recurses down the tree, looking for +// structural elements. For each structural element, +// a corresponding element is created in the table of +// contents. +var searchTags = new Array("book", "chapter", "section"); +var tocTags = new Array("level1", "level2", "level3"); +function addToToc(root, tocFrame) +{ + var i; + var newTocFrame = tocFrame; + var newTocElement = null; + var newTocLink = null; + + for (i=0; i < searchTags.length; i++) { + if (root.tagName == searchTags[i]) { + // If we've found a structural element, create the + // equivalent TOC element. + newTocElement = document.createElement(tocTags[i]); + // Create the toclink element that is a link to the + // corresponding structural element. + newTocLink = document.createElement("toclink"); + newTocLink.setAttributeNS("http://www.w3.org/1999/xlink","xlink:type", "simple"); + newTocLink.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href", "#"+ root.getAttribute("id")); + newTocLink.setAttributeNS("http://www.w3.org/1999/xlink","xlink:show", "replace"); + newTocElement.appendChild(newTocLink); + + // Create the image and toggling container in the table of contents + if (i < searchTags.length-1) { + var img = document.createElementNS("http://www.w3.org/1999/xhtml","img"); + img.src = "minus.gif"; + newTocElement.insertBefore(img,newTocLink); + + newTocFrame = document.createElementNS("http://www.w3.org/1999/xhtml","div"); + newTocElement.appendChild(newTocFrame); + } + else { + newTocFrame = null; + } + + tocFrame.appendChild(newTocElement); + + break; + } + } + + // Recurse down through the childNodes list + for (i=0; i < root.childNodes.length; i++) { + var child = root.childNodes[i]; + if (child.nodeType == Node.ELEMENT_NODE) { + if ((newTocLink != null) && (child.tagName == "title")) { + var text = child.firstChild.cloneNode(true); + newTocLink.appendChild(text); + } + else { + addToToc(child, newTocFrame); + } + } + } +} + +// Create the root table of contents element (a fixed element) +// and its contents. +function createToc() +{ + if (document.getElementsByTagName("toc").length == 0) { + var toc = document.createElement("toc"); + var title = document.createElement("title"); + title.appendChild(document.createTextNode("Table of Contents")); + toc.appendChild(title); + + // Recurse down and build up the document element + addToToc(document.documentElement, toc); + + // Since we've created the toc element as a fixed element, + // insert a rule that shifts over the document element by + // the width of the toc element. + document.styleSheets[0].cssRules[0].style.marginLeft = "12em"; + document.documentElement.appendChild(toc); + + // Attach the event handler for table of contents buttons. + // This will only work for content that is already a part + // of a document, which is why we had to wait until here + // to do this. + toc.addEventListener("mouseup",toggleDisplay,1); + } else { + // Hide the table of contents. + // This is not very intelligent if we have a static document, we should + // just hide/show the toc via stylesheet mungling + document.documentElement.removeChild(document.getElementsByTagName("toc")[0]); + document.styleSheets[0].cssRules[0].style.marginLeft = "0em"; + } +} + -- cgit v1.2.3