private EmbeddedContent fromElementBody(
Element el, ContentType t, EmbeddedContent.Scheduling scheduling) {
final CharProducer cp = textNodesToCharProducer(el, t == ContentType.JS);
return new EmbeddedContent(
this, cp.filePositionForOffsets(0, cp.getLimit()),
new Function<UriFetcher, CharProducer>() {
public CharProducer apply(UriFetcher fetcher) { return cp.clone(); }
},
null, scheduling, el, t);
}