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