/** * Parses an HTML snippet. * @param valueAsString text that contains text and tags to be converted to a document fragment * @return a document fragment * @see <a href="http://developer.mozilla.org/en/docs/DOM:range.createContextualFragment">Mozilla documentation</a> */ public Object jsxFunction_createContextualFragment(final String valueAsString) { final SgmlPage page = startContainer_.getDomNodeOrDie().getPage(); final DomDocumentFragment fragment = new DomDocumentFragment(page); HTMLElement.parseHtmlSnippet(fragment, true, valueAsString); return fragment.getScriptObject(); } }
/** * Parses an HTML snippet. * @param valueAsString text that contains text and tags to be converted to a document fragment * @return a document fragment * @see <a href="http://developer.mozilla.org/en/docs/DOM:range.createContextualFragment">Mozilla documentation</a> */ public Object jsxFunction_createContextualFragment(final String valueAsString) { final SgmlPage page = startContainer_.getDomNodeOrDie().getPage(); final DomDocumentFragment fragment = new DomDocumentFragment(page); HTMLElement.parseHtmlSnippet(fragment, true, valueAsString); return fragment.getScriptObject(); } }
/** * Parses an HTML snippet. * @param valueAsString text that contains text and tags to be converted to a document fragment * @return a document fragment * @see <a href="http://developer.mozilla.org/en/docs/DOM:range.createContextualFragment">Mozilla documentation</a> */ public Object jsxFunction_createContextualFragment(final String valueAsString) { final SgmlPage page = startContainer_.getDomNodeOrDie().getPage(); final DomDocumentFragment fragment = new DomDocumentFragment(page); HTMLElement.parseHtmlSnippet(fragment, true, valueAsString); return fragment.getScriptObject(); } }
node.setPrototype(getPrototype(node.getClass())); node.setDomNode(fragment); output_ = fragment.getScriptObject();
node.setPrototype(getPrototype(node.getClass())); node.setDomNode(fragment); output_ = fragment.getScriptObject();
node.setPrototype(getPrototype(node.getClass())); node.setDomNode(fragment); output_ = fragment.getScriptObject();