code: @Override
    public ScriptElement createScriptElement(Document doc, String source) {
      ScriptElement elem = (ScriptElement) createElement(doc, "script");
      elem.setInnerText(source);
      return elem;
    }
docs: Safari 2 does not support {@link ScriptElement#setText(String)}.