[Webkit-unassigned] [Bug 22481] New: XHTML DOM collection elements <--> JS bindings; issues
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 25 01:30:17 PST 2008
https://bugs.webkit.org/show_bug.cgi?id=22481
Summary: XHTML DOM collection elements <--> JS bindings; issues
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P1
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: raghavendra.deshpande at philips.com
CC: raghavendra.deshpande at philips.com
Accessing the form elements through "document.myform-id" doesn't work in XHTML
files. But if i try the same mechanism, in HTML file, it works fine.
Since I am using XHTML 1.0 transitional, it should work with XHTML file as
well.
In XHTML content, the JSCore throws TypeError, saying "document.myform-id" is
undefined.
I have tested this on Safari with latest nightly and Webkit/Gtk+ with latest
nightly.
[Note: The JS engine in Chrome supports this way of accessing forms.]
See the test page below:
---------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml;
charset=UTF-8"/>
<title>Form access </title>
</head>
<body
style="background-color:white;border-left:0px;border-top:0px;overflow:hidden;"
>
<form id="myform" method="POST" action="about:blank">
<input type="hidden" id="name" value=""></input>
</form>
<script type="text/javascript">
document.myform.name.value="test";
document.myform.setAttribute("action","about:blank");
document.myform.submit();
</script>
</body>
</html>
----------------------------------------------------------
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list