# \[Bug #1416\] Element#text= cause NoMethodError

**URL:** <https://www.ruby-forum.com/t/bug-1416-element-text-cause-nomethoderror/166649>\
**Category:** Development\
**Created:** [April 28, 2009, 7:15am UTC](https://www.ruby-forum.com/t/bug-1416-element-text-cause-nomethoderror/166649 "2009-04-28T07:15:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Teruo\_Oshida](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@Teruo\_Oshida](https://www.ruby-forum.com/u/Teruo_Oshida)\
**Post date:** [April 28, 2009, 7:15am UTC](https://www.ruby-forum.com/t/bug-1416-element-text-cause-nomethoderror/166649/1 "2009-04-28T07:15:26Z")

</div>

Bug #1416: Element#text= cause NoMethodError  
[http://redmine.ruby-lang.org/issues/show/1416](http://redmine.ruby-lang.org/issues/show/1416)

e$B5/I\<\<Te(B: Teruo Oshida  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal  
ruby -v: ruby 1.9.1p0 (2009-01-30 revision 21907) [x86\_64-linux]

[ruby-dev:36444]

Element#text= e$B$Ke(B false e$B$rEO$9$He(B Parent#add  
e$B$K%k!\<%F%#%s%0$5$l$F$7$^$C$F!"e(B  
false.parent = self e$B$r\<B9T$7$h$&$H$7$Fe(B NoMethodError  
e$B$GMn$A$^$9!#e(B

API Doc e$B$r8+$k8B$j!J$^$?8D?ME\*$J\>o\<1$K$\*$$$F$b!Ke(B  
text= e$B$Ke(B false e$B$rEO$;$J$$M}M3$OL5$$$H9M$($^$9!#e(B  
true e$B$OEO$;$^$9$7!#e(B

---

<div class="post-metadata">

**Author:** ![Teruo\_Oshida](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@Teruo\_Oshida](https://www.ruby-forum.com/u/Teruo_Oshida)\
**Post date:** [April 28, 2009, 9:37am UTC](https://www.ruby-forum.com/t/bug-1416-element-text-cause-nomethoderror/166649/2 "2009-04-28T09:37:39Z")

</div>

e$B2!ED$G$9!#e(B

> Bug #1416: Element#text= cause NoMethodError  
> [http://redmine.ruby-lang.org/issues/show/1416](http://redmine.ruby-lang.org/issues/show/1416)

e$B@?$K?=$7Lu$J$$$G$9!#e(B  
e$B$3$N%?%$%H%k$@$HBP\>]$,e(B REXML e$B$@$HH=$i$J$$$G$9$M!#e(B  
ML e$B$+$i%3%T!\<$9$k;~$KJT=8$,E,@Z$G$O$"$j$^$;$s$G$7$?!#e(B

e$BBgJQ$\*\<j?t$G$9$,!"=$@52DG=$J$h$&$G$7$?$i!"e(B  
“REXML::” e$B$rIU2C$7$F2\<$5$$!#e(B

e$B59$7$/$\*4j$$$7$^$9!#e(B

---

<div class="post-metadata">

**Author:** ![Teruo\_Oshida](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/48db29/32.png) [@Teruo\_Oshida](https://www.ruby-forum.com/u/Teruo_Oshida)\
**Post date:** [October 18, 2009, 11:03pm UTC](https://www.ruby-forum.com/t/bug-1416-element-text-cause-nomethoderror/166649/3 "2009-10-18T23:03:08Z")

</div>

e$B%A%1%C%He(B #1416 e$B$,99?7$5$l$^$7$?!#e(B (by Marc-Andre L.)

e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B

## Applied in r25396 + r25397 Thank you for the patch.

[http://redmine.ruby-lang.org/issues/show/1416](http://redmine.ruby-lang.org/issues/show/1416)
