OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
ojan
2014/04/09 01:57:53
We typically use the html doctype in tests:
<!DOCT
| |
2 <html> | |
3 <head> | |
4 <title>::selection with input element</title> | |
ojan
2014/04/09 01:57:53
No need to include the html, head, body or title e
| |
5 <style> | |
6 ::selection { background: green; color:yellow; } | |
ojan
2014/04/09 01:57:53
Nit: you need a space after the color:.
| |
7 </style> | |
8 </head> | |
9 <body> | |
10 <input id="inputText" type="text" value="Hello" onload="document.execCommand ("SelectAll")"></input> | |
ojan
2014/04/09 01:57:53
I don't think inputs have onload events.
ojan
2014/04/09 01:57:53
Please use 4 space indents.
| |
11 <br>The above selected text in the input box should have green background an d yellow color. | |
12 </body> | |
13 <script type="text/javascript"> | |
ojan
2014/04/09 01:57:53
No need to include a type on script elements.
| |
14 window.onload = document.getElementById('inputText').select(); | |
15 </script> | |
ojan
2014/04/09 01:57:53
This test should be done as a reftest so that you
deepak.sa
2014/04/09 14:01:07
As for RefTests, we have to create our own expecte
| |
16 </html> | |
OLD | NEW |