[Webkit-unassigned] [Bug 15854] Blank Space between <tr> and <td> tags been viewed as a text node.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 15 16:41:44 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=15854





------- Comment #7 from rachna.gupta at apple.com  2007-11-15 16:41 PDT -------
(From update of attachment 17068)



<HTML> 
<HEAD>
<title>firstparagraph</title>

<script type="text/javascript">
 function trial(obj)
        {

                 // alert("OBJECT firstChild ="+obj[0].firstChild+"\n\n"+
                 //             "Accessing the element node <td> which is the
child node of <tr> using the Object ,\n tableId.rows[0].firstChild shows a text
object "+
                 //         "rather than HTML TABLE CELL ELEMENT as in IE
because Leopard views even the BLANK space between <tr> and <td> tag as a text
node.");
                  alert(obj[0].firstChild.firstChild+"\n");
                // 
alert("firstChild.firstChild.nodeValue="+obj[0].firstChild.firstChild.nodeValue);

        }

</script>

</head>

<BODY>
<P> We are tesing HTML Document Object Model.<br>
  Click on the button labelled Clickme.  Null as an object should not come.<br>
</P>
<TABLE id="test1" name="test" border="1" cellspacing="3" width="20%"> 
 <tr>
        <td>name</td>
 </tr>
 <tr>
        <td><input type="button" id="btn1" name="btn"  value="Clickme"
onClick=trial(test1.rows); /></td>
 </tr>
</table>

</body>
</HTML>


-- 
Configure bugmail: http://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