SineCosine
I'm still looking for my Tangent
- Reaction score
- 77
So, I've decided to stop using innerHTML for good and start using textNode.
Problem is, I can't do basic things using textNode =/
First alert gives me the intended effect:
While the second alert gives me nothing:
Am I doing something wrong here? o.0
(And yes, I've been googling =x)
Problem is, I can't do basic things using textNode =/
PHP:
alert(get('News').innerHTML);
alert(get('News').firstChild.nodeValue);
First alert gives me the intended effect:
Code:
<div>
<center>
<span class="big-font" style="color: yellow;">.~+*^ News ^*+~.</span><br>
Welcome to the <span class="big-font">AnyHow~Step</span> Blog<br>
We're the first SG-site that's dedicated to providing you with information on all things Pump<br><br>
Feel free to browse through the many sections that we have for offer <br><br>
</center>
<table style="font-size: 0.8em; font-family: verdana;" border="0">
<tbody><tr>
<td>
List of working links:
<ul>
<li>Home</li>
<li>Archive</li>
<li>Pumpers</li>
<li>Shout Out!</li>
<li>Gallery</li>
<li>Fiesta: Song List</li>
</ul>
</td>
</tr>
</tbody></table>
<table style="font-size: 0.8em; font-family: verdana;" border="0">
<tbody><tr><th colspan="2">
<u><b>Pump It Up Pro 2 Qualifying & Quarter Finals</b></u><br>
</th>
</tr><tr>
<td>
<b>Time: </b>
</td>
<td>
Saturday, January 8, 2011 · 10:30am - 4:00pm
</td>
</tr>
<tr>
<td>
<b>Location: </b>
</td>
<td>
Bedok Point (New Shopping Centre)
</td>
</tr>
<tr>
<td>
<b>Extra Info: </b>
</td>
<td>
<br><br><br>
All Preliminary Round players who have qualified are to attend the Event with a total of 16Guys and 8Girls.<br>
Players are to follow the rules.<br>
No Vulgarities allowed.<br><br>
Preliminary Round players who interested in the Routines section are to be alert when the instructions are given.
Note that the Judges will choose only <b>four</b> teams and Judges' decisions are final.<br><br>
A gentle reminder: Barefoot-playing is forbidden<br><br>
PRELIMINARY PLAYERS ARE TO REPORT BY 10.30AM.<br>
Match ups will be decided by the drawing of lots.
</td>
</tr>
</tbody></table>
<center>
<span class="mini-font">
Best viewed with:<br>
Mozilla Firefox<br>
Screen Resolution - 1360 X 768 <br>
</span><br>
</center>
</div>
While the second alert gives me nothing:
Code:
null
Am I doing something wrong here? o.0
(And yes, I've been googling =x)