Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the myStyle property #25

Open
gaurav21r opened this issue Jul 2, 2015 · 1 comment
Open

Document the myStyle property #25

gaurav21r opened this issue Jul 2, 2015 · 1 comment
Assignees

Comments

@gaurav21r
Copy link

I was working with jQuey using $('#myelem').css('grid-row', '1/12') when I noticed the error message saying that HTMLDOMElement.myStyle is to be modified and not HTMLDOMElement.style (which jQuery and other frameworks change).

I think this should be properly documented. Sorry if I missed it somewhere!

@FremyCompany
Copy link
Owner

Yeah, that's a ugly limitation due to Chrome and Safari inability to properly redefine properties on DOM elements. Chrome fixed the bug recently, but I don't want to change the way it works knowing it will fail in older browsers on which developers will not test on.

In the mean time, I would advise only using classes to change the style, and not change the inline style. There are likely bugs related to this, I'm not sure it works in all cases anyway.

You're right I should document this more prominently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants