Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Friday, November 12, 2010

textContent

textContent appears to be a perfectly pukka, DOM-specified way of getting the text of all the text nodes under an element (ie including text from child elements).

It's node.textContent btw.

It can be set as well as read - but will destroy all child nodes in the process of replacing them with one big text node.

Followers

Blog Archive