-
Notifications
You must be signed in to change notification settings - Fork 4
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
Isn’t creating HTML attributes like on
a bad practice?
#1
Comments
Yes, once CuttySSark loads it adds Thanks for bringing this up... I will plan to make this point in the docs! Do you have any suggestions for some sort of compromise between W3 compliance and readability catering to a feel of native functionality? |
That's not the issue. The issue is compatibility. What if W3C decides to standardize the One idea: Have your tool parse the CSS and dynamically change |
I understand the well. I just think that the fact that Cutty allows you to write compliant code is an important point. I made a bet (against myself) that W3 wont ever use the If the W3 outlines an You can not directly modify stylesheets using Javascript, though you can read them. The whole point is to assign styles natively using a true stylesheet rather than doing something like assigning the styles via jQuery. That way any limitations are on the browser-level. |
AngularJS is creating |
That might actually make for more readable Cutty selectors. On the flipside, it's confusingly similar to |
Well if Angular is prefixing with |
Do you mean you don't like that you can't tell what library it's used by? Is it worth the loss of a semi-native feel? |
More or less. I would know since I did it myself, but if this were to go into something like a WordPress theme that might be used/modified by someone else and they hadn't heard of CuttySSark yet....might be a bit confusing. I know it's kind of trivial, but I prefer prefixes on pretty much everything related to plugins. Helps keep things in organized. **Edit: just realized my comments are a little negative :P great work on this though, this is a brilliant little tool you've created! |
I'm considering |
From what I understand, custom HTML attributes defined by our web apps should be prefixed with
data-
to guard against potential name collisions.I might be wrong.
The text was updated successfully, but these errors were encountered: