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
9
votes
2 answers

jQuery get .text() but not the text in span

This is my jQuery part that makes my menu for my pages. function fetchmenus() { $.getJSON('sys/classes/fetch.php?proccess=1', function(status) { // get line status $.each(status, function(i, item) { if (item.id ==…
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
9
votes
2 answers

When a mousedown and mouseup event don't equal a click

I've been using some buttons for a while now that have a depressed effect as they are clicked using position relative and a top: 1px in the :active pseudo-class. I had problems with click events not firing and it turned out to be due to the…
dmnc
  • 791
  • 7
  • 14
8
votes
2 answers

Is there a 4096 character limit for JavaScript XML text nodes?

How is it that I always get only the first 4096 chars of a valid XML text node? (using JavaScript...) is a text node limited?
paul perrault
  • 81
  • 1
  • 3
8
votes
8 answers

finding elements with text using jQuery

I want to create an array of all the html elements within a div that contain text strings, such as

some string

. I don't want to get hold of the strings, I want the array items to be the elements (in the example, would be the p node). I do…
Tim Sheiner
  • 3,253
  • 4
  • 27
  • 22
7
votes
1 answer

Is there a way selecting MULTIPLE areas of text with JS in Chrome and/or IE?

Firefox 3 can select MULTIPLE areas of text with JS. Is there a way doing this in Chrome and IE? I really tried to find a way to select of multiple textareas in a web page in Chrome and IE9. Infos at: http://help.dottoro.com/ljxsqnoi.php Example…
Klaus Klose
  • 71
  • 1
  • 2
7
votes
5 answers

How to remove an individual text node in a div without removing all of them?

How do I go about removing an individual dynamically created text node? I am generating input's on the fly and am using .createTextNode to place descriptive text before the elements. I need the ability to delete specific elements that are being…
Jaden
  • 179
  • 2
  • 2
  • 11
7
votes
3 answers

Javascript preformatted text with cross-browser line breaks

I have preformatted strings with line-breaks and multi-spaces and I want to append them into a text node.