Ward, I'm not sure if this matters but I've been reading the source code
lately and angular does indeed wrap text node's in spans when there's no
wrapping element.
>From line 815, compile.js:
// We can not compile top level text elements since text nodes can be
merged and we will
// not be able to attach scope data to them, so we will wrap them in
<span>
forEach($compileNodes, function(node, index){
if (node.nodeType == 3 /* text node */ &&
node.nodeValue.match(/\S+/) /* non-empty */ ) {
$compileNodes[index] = node =
jqLite(node).wrap('<span></span>').parent()[0];
}
});
On Saturday, February 8, 2014 3:14:30 PM UTC-5, Ward Bell wrote:
>
> Thanks, Sander. I think those touches will help readers better understand
> the implications of these techniques.
>
> I updated the ***readme.md***, yielding this "final" version of the
> plunker: http://plnkr.co/edit/R2O2ixWA1QJUsVcUHl0N?p=info
>
> My hope is that others will learn from this example and its documentation.
> I have credited you (and Umi) for your kind contributions.
>
> Unless I'm really missing something important here, I think we are done.
> Thanks again!
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.