| <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=EUC-JP"> |
| Test for the <code>text</code> attribute of <code>HTMLOptionElement</code>. |
| <a href="http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-48154426">Specification</a>. |
| <option id="o1">foo </option> |
| <option id="o2"> foo</option> |
| <option id="o3">\</option> |
| <option id="o4">foo bar</option> |
| <option id="o5" label=" label ">text</option> |
| document.getElementById("console").appendChild(document.createTextNode(message + "\n")); |
| function test(id, expect) |
| var text = document.getElementById(id).text; |
| log("PASS: got \"" + expect + "\" as expected."); |
| log("FAIL: expected \"" + expect + "\" but got \"" + text + "\" instead."); |