Bug 13121

Summary: REGRESSION (r18288): getting value for hidden input element fails after the fix for Bug 11866
Product: WebKit Reporter: Jake Logan <j>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Critical Keywords: InRadar, Regression
Priority: P1    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Test case from Comment #0 none

Description Jake Logan 2007-03-19 15:47:02 PDT
Please see reduction below. This issue is a regression caused by http://bugs.webkit.org/show_bug.cgi?id=11866.

<html>
<head>
	<script language="javascript">
		function showForm()
		{
			var frm = document.getElementById("frmChangeContent");
			frm.NavigationTarget.value = "Jake";
			alert(frm.innerHTML);
		}
		
	</script>
</head>
<body>
<FORM action="" method=POST id="frmChangeContent" name="frmChangeContent">
	<input type="hidden" id="NavigationTarget" name="NavigationTarget">
</FORM>

<input type = "button" value="Show Form innerHTML" onclick = "showForm()">
</body>
</html>
Comment 1 David Kilzer (:ddkilzer) 2007-03-19 17:40:30 PDT
Created attachment 13712 [details]
Test case from Comment #0
Comment 2 Maciej Stachowiak 2007-03-20 03:19:55 PDT
Does this affect a real-world site?
Comment 3 David Kilzer (:ddkilzer) 2007-03-20 04:19:21 PDT
(In reply to comment #2)
> Does this affect a real-world site?

Yes, see Bug 11866 Comment #10.

Comment 4 Adele Peterson 2007-03-23 11:40:32 PDT
Committed revision 20440
Comment 5 Darin Adler 2007-03-23 12:58:12 PDT
<rdar://problem/5080428>