aboutsummaryrefslogtreecommitdiffstats
path: root/libly.js
diff options
context:
space:
mode:
authorsuVene2008-12-07 22:52:49 +0000
committersuVene2008-12-07 22:52:49 +0000
commitcc6d860ff13ec4ba88cd29b4182076c24539a99d (patch)
tree7fb94c8e50e3d3e0d818500dac38c2365191e9aa /libly.js
parentc7ecf6edd5a67cac55a9313827886b40ee42bf52 (diff)
downloadvimperator-plugins-cc6d860ff13ec4ba88cd29b4182076c24539a99d.tar.bz2
*libty.js bug fix.
*それに伴うmulti_requester.jsの修正 *subject_test.js rename to subject_hatelabo_bottle.js(途中) *etc. git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@26085 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'libly.js')
-rw-r--r--libly.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/libly.js b/libly.js
index 09bce6e..55ef192 100644
--- a/libly.js
+++ b/libly.js
@@ -4,10 +4,10 @@
* @description suvene's library
* @description-ja 適当なライブラリっぽいものたち
* @author suVene suvene@zeromemory.info
- * @version 0.1.0
+ * @version 0.1.1
* @minVersion 1.2
* @maxVersion 2.0pre
- * Last Change: 07-Dec-2008.
+ * Last Change: 08-Dec-2008.
* ==/VimperatorPlugin==
*
* HEAD COMMENT {{{
@@ -246,7 +246,7 @@ lib.Response.prototype = {
initialize: function(req) {
this.req = req;
this.transport = req.transport;
- this.isSuccess = req.isSuccess();
+ this.isSuccess = req.isSuccess;
this.readyState = this.transport.readyState;
if (this.readyState == 4) {
@@ -266,14 +266,14 @@ lib.Response.prototype = {
return this.transport.statusText || '';
} catch (e) { return ''; }
},
- getHTMLDocument: function(xpath, xmlns) {
+ getHTMLDocument: function(xpath, xmlns, ignoreTags) {
if (!this.doc) {
this.htmlFragmentstr = this.responseText.replace(/^[\s\S]*?<html(?:[ \t\n\r][^>]*)?>|<\/html[ \t\r\n]*>[\S\s]*$/ig, '').replace(/[\r\n]+/g, ' ');
- let ignoreTags = ['script'];
- if (this.req.options.siteinfo.ignoreTags) {
- ignoreTags.concat(this.req.options.siteinfo.ignoreTags.split(','));
+ var iTags = ['script'];
+ if (ignoreTags) {
+ iTags.concat(ignoreTags.split(','));
}
- this.htmlStripScriptFragmentstr = lib.$U.stripTags(this.htmlFragmentstr, 'script');
+ this.htmlStripScriptFragmentstr = lib.$U.stripTags(this.htmlFragmentstr, iTags);
this.doc = this._createHTMLDocument(this.htmlStripScriptFragmentstr, xmlns);
}