OSDN Git Service

1, SVGAnimationElementの修正
authordhrname <dhrname@users.sourceforge.jp>
Sat, 7 Jan 2012 12:41:50 +0000 (21:41 +0900)
committerdhrname <dhrname@users.sourceforge.jp>
Sat, 7 Jan 2012 12:41:50 +0000 (21:41 +0900)
2, _timeRegExpプロパティについて、セミコロンも対象に入れた

org/w3c/dom/svg.js

index 26a2d7b..13c2b83 100644 (file)
@@ -5153,7 +5153,7 @@ function SVGAnimationElement(es) {
     } catch (e) {
       throw new DOMException(DOMException.INVALID_STATE_ERR);
     }
-    tar.endElementAt(active);
+    tar.endElementAt(ac);
   }, false);
   this.addEventListener("DOMAttrModified", function(evt){
     if (evt.eventPhase === /*Event.BUBBLING_PHASE*/ 3) {
@@ -5330,7 +5330,7 @@ SVGAnimationElement.prototype = new SVGElement();
   this._finish = offset + ntc;
 };
 SVGAnimationElement.prototype._eventRegExp = /(mouse|activ|clic|begi|en)[a-z]+/;
-SVGAnimationElement.prototype._timeRegExp = /[\-\d\.]+(h|min|s|ms)?$/;
+SVGAnimationElement.prototype._timeRegExp = /[\-\d\.]+(h|min|s|ms)?;?/;
 SVGAnimationElement.prototype._unit = {
     "h"   : 2880000,
     "min" : 48000,