Closed Bug 269341 Opened 20 years ago Closed 12 years ago

exposing elements by their id/name fails when frame is invovled

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: iamawalrus, Unassigned)

References

Details

since 256932, we can reference an element directly by its id/name. But when a
page is in a frame, it still fails.
For example, you can see an alert with the element information with following code:
<html>
<head>
  <meta http-equiv="content-type"
 content="text/html; charset=ISO-8859-1">
  <title>IE Compat Test Cases</title>
</head>
<body>
<h1 id="test">IE Compatible Test Cases</h1>
<script language="javascript">
alert(test);
</script>
</body>
</html>
But, if you load this page in a frame, it shows nothing and an error is logged
in javascript console as"test is not defined".
Depends on: 268036
Assignee: general → nobody
QA Contact: ian → general
Worksforme in a current build.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.