Bug 20102

Summary: Remove attribute "text/css" for style element used in staff client templates
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, katrin.fischer, martin.renvoize, nick
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20054
Change sponsored?: --- Patch complexity: Medium patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates
Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates
Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates
Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates

Description Owen Leonard 2018-01-30 17:02:00 UTC
Conformance rules for HTML5 is generating warnings for <style> element
with type="text/css" attribute when the OPAC page is checked
with W3C Validator. 

The type attribute is optional, and when none is provided it defaults to "text/css" - https://www.w3.org/TR/html5/document-metadata.html#element-attrdef-style-type.
Comment 1 Owen Leonard 2018-11-29 18:01:36 UTC
Created attachment 82759 [details] [review]
Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates

This patch modifies staff client templates to remove the "type"
attribute from <style> tags. The attribute is no longer valid.

To test, apply the patch and confirm the changes to the templates. The
appearance of the staff client should be unchanged.

Validating pages from the staff client should not return any errors
related to the <style> "type" attribute.
Comment 2 Owen Leonard 2019-02-04 14:15:15 UTC
Created attachment 84703 [details] [review]
Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates

This patch modifies staff client templates to remove the "type"
attribute from <style> tags. The attribute is no longer valid.

To test, apply the patch and confirm the changes to the templates. The
appearance of the staff client should be unchanged.

Validating pages from the staff client should not return any errors
related to the <style> "type" attribute.
Comment 3 José-Mario Monteiro-Santos 2019-02-08 20:42:36 UTC
Created attachment 84902 [details] [review]
Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates

This patch modifies staff client templates to remove the "type"
attribute from <style> tags. The attribute is no longer valid.

To test, apply the patch and confirm the changes to the templates. The
appearance of the staff client should be unchanged.

Validating pages from the staff client should not return any errors
related to the <style> "type" attribute.

Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>
Comment 4 Katrin Fischer 2019-02-09 19:15:31 UTC
Created attachment 84905 [details] [review]
Bug 20102: Remove attribute "text/css" for <style> element used in staff client templates

This patch modifies staff client templates to remove the "type"
attribute from <style> tags. The attribute is no longer valid.

To test, apply the patch and confirm the changes to the templates. The
appearance of the staff client should be unchanged.

Validating pages from the staff client should not return any errors
related to the <style> "type" attribute.

Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Nick Clemens 2019-02-19 13:59:00 UTC
Awesome work all!

Pushed to master for 19.05
Comment 6 Katrin Fischer 2019-02-25 23:00:32 UTC
The <style> in the title broke display of the release notes on gitlab. Removing the <>.
Comment 7 Martin Renvoize 2019-02-26 09:05:21 UTC
It's good to be conformant, pushed to 18.11.x for 18.11.04