Bug 15854 - Blank Space between <tr> and <td> tags been viewed as a text node.
Summary: Blank Space between <tr> and <td> tags been viewed as a text node.
Status: RESOLVED DUPLICATE of bug 16006
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 419.x
Hardware: Mac OS X 10.4
: P3 Normal
Assignee: Nobody
URL:
Keywords: HasReduction, InRadar
Depends on:
Blocks:
 
Reported: 2007-11-06 02:45 PST by vasantha
Modified: 2007-11-15 23:56 PST (History)
1 user (show)

See Also:


Attachments
Test Case: (1.71 KB, text/html)
2007-11-06 16:42 PST, rachna Gupta
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description vasantha 2007-11-06 02:45:58 PST
Select Shift Bid Admin.
 Select Filter Shift Bid icon
 Select staff group ACT2S (AC AMR T2 Sacramento)
 Find ACT2 Sac in list, select the edit icon (pencil) in the Option  
  column to the right of ACT2 Sac
 Click on on the Class Assignment tab
 In Sequence column, find number 1. Two column to the left of  
   Sequence 1 column will be a box.
 In the box, click on it, so it can be checked.
 Near the bottom of this window, you will see the Assigned Class  
   button.
 Click on Assigned Class button.
 If it actually worked, you would see a Class assigned to Sequence1.  This    would be seen one column to the left of the Sequence 1 column.
Comment 1 David Kilzer (:ddkilzer) 2007-11-06 04:17:27 PST
Is there a Radar for this issue as well?
Comment 2 rachna Gupta 2007-11-06 16:42:29 PST
Created attachment 17068 [details]
Test Case:
Comment 3 mitz 2007-11-06 17:47:42 PST
For what it's worth, <http://trac.webkit.org/projects/webkit/changeset/21720> is the change that allowed whitespace-only text nodes in table rows (and some other places inside tables).
Comment 4 rachna Gupta 2007-11-14 17:17:51 PST
Comment on attachment 17068 [details]
Test Case: 

Blank Space between <tr> and <td> tags been viewed as a text node.
Comment 5 vasantha 2007-11-14 17:27:33 PST
The blank space given between  the HTML tags like <tr> and <td> is viewed as a text node.As a result accessing the object firstChild.firstChild was returning a null value in Leopard.
Comment 6 rachna Gupta 2007-11-15 16:38:46 PST
Comment on attachment 17068 [details]
Test Case: 



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

<script type="text/javascript">
 function trial(obj)
 	{	
 	      alert(obj[0].firstChild.firstChild+"\n");
 	}
 	  
</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>
Comment 7 rachna Gupta 2007-11-15 16:41:44 PST
Comment on attachment 17068 [details]
Test Case: 



	  
<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>
Comment 8 David Kilzer (:ddkilzer) 2007-11-15 22:21:15 PST
*** Bug 16006 has been marked as a duplicate of this bug. ***
Comment 9 David Kilzer (:ddkilzer) 2007-11-15 22:25:08 PST
Vasantha and Rachna:  Why is this fix needed?  Obviously there's a reason you're posting these bugs.

Please contact the Safari team directly (Darin Adler or Maciej Stachowiak) if the reason can't be posted publicly.

Also, please provide a Radar number (in this bug) since you've added the InRadar keyword.  Thanks!
Comment 10 David Kilzer (:ddkilzer) 2007-11-15 23:56:01 PST
Per user request, reopening Bug 16006 and marking Bug 15854 a duplicate of it.



*** This bug has been marked as a duplicate of 16006 ***