-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for <textarea> newline handling.
- Loading branch information
Amir E. Aharoni
committed
Nov 15, 2011
1 parent
30acb48
commit fba396b
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: א.‎ | ||
א this line begins with a Hebrew letter. | ||
</textarea> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: א. | ||
א this line begins with a Hebrew letter. | ||
</textarea> | ||
</body> | ||
</html> |