示例#1
0
文件: Attr.java 项目: xinl/HTMLUnit
  /** {@inheritDoc} */
  @Override
  public Node jsxGet_lastChild() {
    if (getBrowserVersion()
        .hasFeature(BrowserVersionFeatures.JS_ATTR_FIRST_LAST_CHILD_RETURNS_NULL)) {
      return null;
    }

    final DomText text = new DomText(getDomNodeOrDie().getPage(), jsxGet_nodeValue());
    return (Node) text.getScriptObject();
  }
示例#2
0
文件: Text.java 项目: enenuki/phd
 /*  9:   */
 /* 10:   */ public Object jsxFunction_splitText(int offset) /* 11:   */ {
   /* 12:47 */ DomText domText = (DomText) getDomNodeOrDie();
   /* 13:48 */ return getScriptableFor(domText.splitText(offset));
   /* 14:   */ }