Closed
Bug 543596
Opened 16 years ago
Closed 15 years ago
firstChild works incorrectly in some cases by using white space or return
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: silvios_mail, Unassigned)
Details
(Whiteboard: [CLOSEME 2011-1-30])
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
firstChild works incorrectly in some cases by using white space or return
Reproducible: Always
Steps to Reproduce:
1. test working example:
<code>
<ol id="Liste1"><li id="e1">Element_1</li><li id="e2">Element_2</li></ol>
<script type="text/javascript">
document.getElementById("Liste1").removeChild(document.getElementById("Liste1").firstChild);
</script>
</code>
also working:
<code>
<ol id="Liste1"> < li id="e1">Element_1</li><li id="e2">Element_2</li></ol>
<script type="text/javascript">
document.getElementById("Liste1").removeChild(document.getElementById("Liste1").firstChild);
</script>
</code>
and:
<code>
<ol id="Liste1">
<
li id="e1">Element_1</li><li id="e2">Element_2</li></ol>
<script type="text/javascript">
document.getElementById("Liste1").removeChild(document.getElementById("Liste1").firstChild);
</script>
</code>
2. but if you have a white space or return between ">" and "<li"
it doesn't work:
<code>
<ol id="Liste1"> <li id="e1">Element_1</li><li id="e2">Element_2</li></ol>
<script type="text/javascript">
document.getElementById("Liste1").removeChild(document.getElementById("Liste1").firstChild);
</script>
</code>
or:
<code>
<ol id="Liste1">
<li id="e1">Element_1</li><li id="e2">Element_2</li></ol>
<script type="text/javascript">
document.getElementById("Liste1").removeChild(document.getElementById("Liste1").firstChild);
</script>
</code>
if you use
document.getElementById("Liste1").removeChild(document.getElementById("e1"));
it works everytime
Comment 1•15 years ago
|
||
Reporter, are you still seeing this issue with Firefox 3.6.13 or later in safe mode? If not, please close. These links can help you in your testing.
http://support.mozilla.com/kb/Safe+Mode
http://support.mozilla.com/kb/Managing+profiles
You can also try to reproduce in Firefox 4 Beta 8 or later, there are many improvements in the new version, http://www.mozilla.com/en-US/firefox/all-beta.html
Whiteboard: [CLOSEME 2011-1-30]
Comment 2•15 years ago
|
||
No reply, INCOMPLETE. Please retest with Firefox 3.6.13 or later and a new profile (http://support.mozilla.com/kb/Managing+profiles). If you continue to see this issue with the newest firefox and a new profile, then please comment on this bug.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•