lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev Disabled acts as Readonly; Readonly is Broken


From: David J Woolley
Subject: lynx-dev Disabled acts as Readonly; Readonly is Broken
Date: Tue, 11 Aug 1998 20:26:07 +0100

2.8.1dev.16  Win 32

Lynx treats input fields with a disabled attribute as though they 
were readonly, but not disabled.  It appears to ignore the readonly 
attribute, even though that is what it actually implements.


HTML 4.0 Spec:

17.12.1 Disabled controls

Disabled controls do not receive focus [p.227] .
Disabled controls are skipped in tabbing navigation [p.228] .
Disabled controls cannot be successful [p.232] .

17.12.2 Read-only controls

Read-only elements receive focus [p.227] but cannot be modified by the
user.
Read-only elements are included in tabbing navigation [p.228] .
Read-only elements may be successful [p.232] .

Successful means they are transmitted to the server.

In Lynx, "disabled" controls meet all the three criteria above for 
readonly controls and fail all the criteria for disabled controls.

As an immediate fix, I would suggest making readonly work the same as 
disabled, which may work well enough in many cases, assuming that the 
server ignores the unwanted value from the disabled control.  
Obviously it should really inhibit transmission as well.

IE4 handles this correctly, NS 4.05 ignores both attributes.

Test File:
<html>
<head>
<title>Lynx Breaker</title>
</head>
<body>
<form method="GET" action="http://saracen.bts.co.uk/cgi-bin/testenv";>
    <dl>
        <dt>P1
        <dd><input type="text" name="p1" value="1" readonly>

        <dt>P2
        <dd><input type="text" name="p2" value="EXTN" disabled>

    </dl>
    <input type="submit" name="submit" value="Update">
<form>
</body>
</html>

Lynx result:
QUERY_STRING=p1=1&p2=EXTN&submit=Update 

IE4 result:
QUERY_STRING=p1=1&submit=Update

testenv simply does a printenv back to the browser.

-- 
David Woolley - Office: David Woolley <address@hidden>
BTS             Home: <address@hidden>
Wallington      TQ 2887 6421
England         51  21' 44" N,  00  09' 01" W (WGS 84)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]