| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| <title>Align test</title> |
| <style type="text/css" media="all"> |
| <script type="text/javascript"> |
| var DOMObj = document.getElementById("body"); |
| alert("Can't get element with id \"body\""); |
| textElement = document.createElement("p"); |
| textElement.setAttribute("class", "center"); |
| textElement.appendChild(document.createTextNode("Should be centered")); |
| DOMObj.appendChild(textElement); |
| <body id="body" onload="runTest()"> |
| <p>Below both lines should be centered. The first is static, the second is dynamically generated using javascript. Bug 14506.</p> |
| <p class="center">Should be centered</p> |