Skip to content

Commit

Permalink
Fix HTML5 Validation
Browse files Browse the repository at this point in the history
The HTML validation of a document with Debugbar enabled gives this error `Element link is missing required attribute property.`

The line source of the error is link of stylesheet:

```
<link rel='stylesheet' type='text/css' href='http://localhost:8080/_debugbar/assets/stylesheets?v=1462974883'>
```
  • Loading branch information
ismaail committed May 16, 2016
1 parent 92556ec commit e31f27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JavascriptRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function renderHead()
'v' => $this->getModifiedTime('js')
]);

$html = "<link rel='stylesheet' type='text/css' href='{$cssRoute}'>";
$html = "<link rel='stylesheet' type='text/css' property='stylesheet' href='{$cssRoute}'>";
$html .= "<script type='text/javascript' src='{$jsRoute}'></script>";

if ($this->isJqueryNoConflictEnabled()) {
Expand Down

0 comments on commit e31f27e

Please sign in to comment.