-
Notifications
You must be signed in to change notification settings - Fork 46.9k
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
<head profile="...">: profile attribute is not supported #6029
Comments
I guess obsoleted in HTML5 is fine. Would you like to add it? |
Embarrassingly, I don't know a whole lot about what I'm doing here (though I do like learning!). It seems like it would be pretty straightforward to copy the change that solved #4226, but I just want to double check that that is all that would be required...? |
In terms of being obsoleted, it still seems to be in use for opensearch so I'm imagining its useful to have around. |
Pretty much. The important thing to check is what updating the value would look like (even if your case is server rendering). My common way to test this is to load up a data uri and then manipulate the DOM via JS to set the property/attribute and then see what works.
So the result of that is that |
I'm confident you know what you're talking about but I'm noticing that, currently, the wrap property is null instead of |
@saiichihashimoto We recently changed from using Most values can be updated via attributes, so you can set the value to null. Some html elements must be updated using the property instead of the attribute (otherwise, the changes won't take effect by the browser), in which case, the value must be In this case, I'm not entirely sure if the browser even does anything with the |
@jimfb I haven't tested specifically if browsers actually use it. However, according to the opensearch specs:
If its part of their specs then opensearch clients (now or in the future) very well may check for it. |
@saiichihashimoto Right, but if browsers don't actually use it, then it's almost certainly sufficient to set it as an attribute and not a property. Therefore, to answer your question, |
Ah, my mistake. I forgot we switched to attributes by default. As I mentioned before with my test "code", the property doesn't work so we need to use attributes. |
https://facebook.github.io/react/docs/tags-and-attributes.html : profile is missing
https://facebook.github.io/react/docs/jsx-gotchas.html :
If you pass properties to native HTML elements that do not exist in the HTML specification, React will not render them.
Meanwhile, profile attributes is in standards (kind of): http://www.w3schools.com/tags/tag_head.asp.
^ Above is a blatant copy of #4226 but hey, that worked out.
Also, anticipating the need to glance at the Mozilla Developer site: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/head#attr-profile
One day, #140 will be closed and this won't be an issue anymore. :-)
The text was updated successfully, but these errors were encountered: