XUL doesn't implement .style; catch the exception it throws. Bug 218222

followup-to-followup, r=caillon, sr=dbaron
This commit is contained in:
bzbarsky%mit.edu 2003-10-06 20:21:48 +00:00
parent aadb5a8e06
commit c014fb7dd8

View File

@ -333,9 +333,12 @@ function StyleRuleView(aObject)
this.mSheetRules = aObject.cssRules;
} else {
this.mRules = this.mDOMUtils.getCSSStyleRules(aObject);
if (aObject.hasAttribute("style"))
if (aObject.hasAttribute("style")) {
try {
this.mStyleAttribute =
new XPCNativeWrapper(aObject, "style").style;
} catch (ex) {}
}
}
}