-
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
Attributes are lowercased #10
Comments
This is actually not a Webstrates or file system bug. If you try adding an attribute to any non-webstrates page using the Inspector, it will also be lowercased automatically. A workaround is to use E.g. inserting
will change the attribute to
and then do
the attribute will remain as It might be possible to create a workaround for this in the Webstrates code as well. I'll look into that. |
That is interesting - the inspector doesn't lowercase svg attributes in Chromium here but most (all?) other elements have their attributes lowercased as soon as you click away from them. I guess they have hardcoded svg elements and their children as a special case. Webstrates seemingly supports persisting the inspector-edited camelCase attribute in Chromium and can reload it in the same or other browsers as long as the filesystem script isn't running. If the script is running the attribute will be lowercased upon updating the file (even if the newly written file has the attribute camelcased when written from an external editor). |
Indeed. Or the "hardcoding" is probably more related to the specific namespace that SVG elements use. You will notice that Yes, the file system might screw around with casing then. We've ignoring casing on tag names (and possibly attributes, I don't recall), because the different browsers can't seem to agree on when the |
Good point - and no rush, btw, a simple workaround for now is to just have the SVG symbols in an asset and link them into the document using |
This has been fixed since switching
|
This impacts HTML5 with inline SVGs which require the viewBox attribute to be camel cased. Example:
The text was updated successfully, but these errors were encountered: