Skip to content

Commit

Permalink
Added tests for <textarea> newline handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir E. Aharoni committed Nov 15, 2011
1 parent 30acb48 commit fba396b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
17 changes: 17 additions & 0 deletions html5/textarea-newline/textarea-break-bidi-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML Test reference: BR separates bidi paragraph</title>
<link rel="author" title="Amir E. Aharoni" href="mailto:amir.aharoni@mail.huji.ac.il"/>
<link rel="author" title="Eyal Sela" href="mailto:eyal@post.isoc.org.il"/>
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/>
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-textarea-element"/>
</head>
<body>
<p>The rightmost character in the first line in the textarea must be a full stop and to the left of it must be a Hebrew letter.</p>
<textarea cols="70" rows="3">
A Hebrew letter and a full stop: &#x05d0;.&lrm;
&#x05d0; this line begins with a Hebrew letter.
</textarea>
</body>
</html>
20 changes: 20 additions & 0 deletions html5/textarea-newline/textarea-break-bidi.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>HTML Test: BR separates bidi paragraph</title>
<link rel="reference" href="textarea-break-bidi-ref.html" />
<link rel="author" title="Amir E. Aharoni" href="mailto:amir.aharoni@mail.huji.ac.il"/>
<link rel="author" title="Eyal Sela" href="mailto:eyal@post.isoc.org.il"/>
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/>
<link rel="help" href="http://dev.w3.org/html5/spec/Overview.html#the-textarea-element"/>
<meta name="assert"
content="A newline in a textarea element, and in its raw value, should separate paragraphs for the purposes of the Unicode bidirectional algorithm.">
</head>
<body>
<p>The rightmost character in the first line in the textarea must be a full stop and to the left of it must be a Hebrew letter.</p>
<textarea cols="70" rows="3">
A Hebrew letter and a full stop: &#x05d0;.
&#x05d0; this line begins with a Hebrew letter.
</textarea>
</body>
</html>

0 comments on commit fba396b

Please sign in to comment.