ivory-google-map icon indicating copy to clipboard operation
ivory-google-map copied to clipboard

Serious typo "test/css" in StylesheetTagRenderer.php

Open Defcon0 opened this issue 6 years ago • 0 comments

Hello,

at first thanks for the great plugin you've put together!!

I found an issue in StylesheetTagRenderer.php. Currently in that file we have:

return $this->getTagRenderer()->render(
            'style',
            $formatter->renderLines([
                $name.$formatter->renderSeparator().'{',
                $formatter->renderIndentation($formatter->renderLines($tagStylesheets, true, false)),
                '}',
            ], !empty($tagStylesheets), false),
            array_merge(['type' => 'test/css'], $attributes),
            $newLine
        );

But it needs to be

return $this->getTagRenderer()->render(
            'style',
            $formatter->renderLines([
                $name.$formatter->renderSeparator().'{',
                $formatter->renderIndentation($formatter->renderLines($tagStylesheets, true, false)),
                '}',
            ], !empty($tagStylesheets), false),
            array_merge(['type' => 'text/css'], $attributes),
            $newLine
        );

The type of the style element is 'type' => 'test/css' but it needs to be 'type' => 'text/css'.

Thanks in advance for fixing this ;-)

Bye Defcon0

Defcon0 avatar Mar 29 '18 09:03 Defcon0