-
Notifications
You must be signed in to change notification settings - Fork 825
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
W3C compatibility #7438
Comments
This is likely an issue with the simple theme and not the framework itself. PRs to go against: https://github.com/silverstripe-themes/silverstripe-simple please |
I'm not so sure, because the line Also, because so far SS aria codes are not W3C cumpliance, I suggest to delete the following line in framework/forms/FormField.php : |
What generates an error? Can you show it here, alongside with a full copy of the HTML document that generated the error? |
Can See also: namespace App\Extensions;
use SilverStripe\Core\Extension;
use SilverStripe\Control\ContentNegotiator;
class PageExtension extends Extension
{
public function MetaComponents(array &$tags)
{
$charset = ContentNegotiator::config()->uninherited('encoding');
$tags['contentType'] = [
'attributes' => [
'charset' => $charset
]
];
}
} |
Not a big deal, but...
Assuming SS is HTML5
<meta charset="utf-8">
and
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
In HTML5 it's the same and generates a warning, so one is not needed. Best practice said to keep the shorter.
<header class="header" role="banner">
Role="Banner" is not needed and generate a warning. Should be deleted.
The text was updated successfully, but these errors were encountered: