You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the feeling this project is long since abandoned, but I'll leave this here for what it's worth. It was a great project, BTW!
Env.js 1.2 doesn't support a.hash. That is, if you create an anchor tag, with an href, and then try to look it up via a.hash, it returns undefined. This code fixes that (albeit crudely):
HTMLElement.prototype.setAttribute = function(name, value) {
//console.log("CSS set attribute: " + name + ", " + value);
origSetAttribute.apply(this, arguments);
if (name === "style") {
updateCss2Props(this, value);
}
// Add support for 'HTMLAnchorTag.hash'
if (this.tagName === "A" && name === "href" && value.indexOf( "#" ) !== -1 ) {
this.hash = value.substring( value.indexOf( "#" ));
}
}
The text was updated successfully, but these errors were encountered:
I get the feeling this project is long since abandoned, but I'll leave this here for what it's worth. It was a great project, BTW!
Env.js 1.2 doesn't support a.hash. That is, if you create an anchor tag, with an href, and then try to look it up via a.hash, it returns undefined. This code fixes that (albeit crudely):
The text was updated successfully, but these errors were encountered: