Questions tagged [textnode]

textNodes in DOM, HTML, XML are nodes which contain only text, rather than the other node types of element, comment, and processing instruction.

textNodes in DOM, HTML, XML are nodes which contain only text, rather than the other node types of element, comment, and .

191 questions
-1
votes
1 answer

What is considered a text node?

Generally if there is text between tags in HTML, it becomes a text node. However, this is not always the case. Consider this example:

hello world

Here, the linebreak and 2 spaces between…
Lev
  • 6,487
  • 6
  • 28
  • 29
-1
votes
1 answer

How to manipulate a text node whose parent is coming null

I am parsing a website and I get an element like this Hometown/High School: " …
Tripti Rawat
  • 645
  • 7
  • 19
-1
votes
1 answer

How to create a newline in Text Node

I'm trying to add some text and a linebreak with the code below. The Text Node t is supposed to to have a linebreak between "myinput" and "ddd", but it doesn't work :( Any ideas? // Create a new list item when clicking on the "Add" button function…
Maxim Baran
  • 67
  • 1
  • 9
-1
votes
1 answer

How to write XML content in Java for Android?

I need a little bit of help...I want to write scores to an XML file on click of a save button and retrieve saved scores automatically the next time the app starts up. I have written the following code to save the score but unfortunately it's not…
volt
  • 21
  • 4
-1
votes
1 answer

jQuery / javascript split text node

i need to split an HTML element based on a users selection like this :

Hi , i need to split an [HTML] element based on a users selection

in first use :

Hi , i need to split an HTML element based on…

talkhabi
  • 2,669
  • 3
  • 20
  • 29
-2
votes
1 answer

Javascript find-and-replace code in need of correction

The following code, included in the header of a website, contains errors. I think the intention is clear by the code, but that it contains syntactical and/or other errors? Please correct. Edit 2: full minimal example (js fiddle:…
ptrcao
  • 421
  • 1
  • 5
  • 19
-2
votes
2 answers

Javascript basic animation rotate sting

I'm having a hard time understanding whats going in in this function. Can someone break it down step by step? JavaScript basic animation
user5792299
-2
votes
1 answer

How do I fix createTextNode's value being undefined when there was a value previously in it?

I am struggling with how to store/save a text node's value which is crucial to solving my problem. Basically, it resolves around select option menus. I debugged the program line by line and found that after the function onChange() is done and I go…
TheAmazingKnight
  • 2,442
  • 9
  • 49
  • 77
-2
votes
3 answers

Changing content of DOM text node

Say I have the following HTML:
Some text
I'm wanting to remove the last character from the text each time the user hits the backspace key. Is there a way to actually remove a character from a text node? Or do I have to do something like…
Kong
  • 8,792
  • 15
  • 68
  • 98
-3
votes
1 answer

How do I change the innerText on the li element with JavaScript

This code is after the browser's loaded. I need to change the li class buddyName - "Strider" to "Aragon".
...
Sharon M.
  • 11
  • 2
  • 2
-4
votes
2 answers

Edit Multiple XML Nodes in Multiple XML files

I have multiple XML files(60+) that I need to edit multiple text nodes(I think it's called). I am familiar with Java, JavaScript, Python, JQuery, PHP, HTML. What language could I complete this with? This is what I current have for a sample XML…
Kevin
  • 131
  • 2
  • 5
  • 14
1 2 3
12
13