Input tel

Summary

Harness status: OK

Found 13 tests

Details

ResultTest NameMessage
Passtel type supported on input element
Asserts run
Pass
assert_equals("tel", "tel")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:22:7)
PassUser agents must not allow users to insert "LF" (U+000A)
Asserts run
Pass
assert_equals("01", "01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:26:7)
PassUser agents must not allow users to insert "CR" (U+000D)
Asserts run
Pass
assert_equals("01", "01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:30:7)
PassThe value attribute, if specified, must have a value that contains no "LF" (U+000A)
Asserts run
Pass
assert_equals("01", "01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:35:7)
PassThe value attribute, if specified, must have a value that contains no "CR" (U+000D)
Asserts run
Pass
assert_equals("01", "01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:40:7)
PassThe value sanitization algorithm is as follows: Strip line breaks from the value
Asserts run
Pass
assert_equals("01", "01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:46:7)
Pass
assert_equals("01", "01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:49:7)
PassElement can accept the phone number with plus sign(country code)
Asserts run
Pass
assert_equals("+811234", "+811234")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:55:7)
PassElement can accept the phone number with hash mark(extension number)
Asserts run
Pass
assert_equals("1234#5678", "1234#5678")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:59:7)
PassElement can accept the phone number with hyphen
Asserts run
Pass
assert_equals("123-456-789", "123-456-789")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:63:7)
PassElement can accept the phone number with dots
Asserts run
Pass
assert_equals("123.456.789", "123.456.789")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:67:7)
PassElement can accept the phone number with whitespace
Asserts run
Pass
assert_equals("1 23 4", "1 23 4")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:71:7)
PassElement can accept the phone number with leading & following whitespaces
Asserts run
Pass
assert_equals(" 1234 ", " 1234 ")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:75:7)
PassElement can accept the phone number with parentheses(area code)
Asserts run
Pass
assert_equals("(03)12345678", "(03)12345678")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/telephone.html:79:7)