Closed
Bug 1304
Opened 26 years ago
Closed 26 years ago
W3C DOM .length vs. .size issue
Categories
(Core :: DOM: Core & HTML, defect, P2)
Tracking
()
VERIFIED
INVALID
People
(Reporter: angus, Assigned: vidur)
Details
It's a minor syntax incompatibility issue. Here's a simple test case:
<html>
<head>
<script>
// this works:
alert(document.getElementById("mydiv").childNodes.length);
// this is the specified API; but it doesn't work:
alert(document.getElementById("mydiv").childNodes.size);
</script>
</head>
<body onload="init()">
<div id="mydiv">
<p>one</p>
<p>two</p>
<p>three</p>
</div>
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Comment 1•26 years ago
|
||
No, the W3C api says .length.
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•