I am patching JQuery to work against svgweb. svgweb implements the SVG DOM in Flash for IE, and marshal's Flash calls via fake DOM nodes. Needless to say, JQuery doesn't work with svgweb. So, I'm patching select methods in JQuery, like (attr, hasClass, css, etc...) to work with svgweb.
Is there a way to test JQuery method calls against a list of supported methods, and throw an error if the method isn't supported?
Something like this, injected at a magic spot in JQuery:
function magicFilterMethod(methodName) {
if ($.inArray(methodName, ['hasClass', 'attr', 'find',...]) {
return true;
}
throw "Method not supported in svgweb: " + methodName;
}