test_clearing.html (965B)
1 <html> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <body> 6 <input id="writableTextInput" type="text" value="Test"/> 7 8 <input id="readOnlyTextInput" type="text" readonly value="Test"/> 9 10 <input id="textInputnotenabled" type="text" disabled="true" value="Test"/> 11 12 <textarea id="writableTextArea" rows="2" cols="20"> 13 This is a sample text area which is supposed to be cleared 14 </textarea> 15 16 <textarea id="textAreaReadOnly" readonly rows="5" cols="20"> 17 text area which is not supposed to be cleared</textarea> 18 19 <textarea rows="5" id="textAreaNotenabled" disabled="true" cols="20"> 20 text area which is not supposed to be cleared</textarea> 21 22 <div id="content-editable" contentEditable="true">This is a contentEditable area</div> 23 </body> 24 </html>