[Koha-bugs] [Bug 3239] New: Declare default style/script w/ HTTP headers

bugzilla-daemon at liblime.com bugzilla-daemon at liblime.com
Wed May 20 18:02:41 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3239

           Summary: Declare default style/script w/ HTTP headers
           Product: Koha
           Version: HEAD
          Platform: PC
               URL: http://www.w3.org/TR/html401/present/styles.html#h-
                    14.2.1
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: Architecture, internals, and plumbing
        AssignedTo: galen.charlton at liblime.com
        ReportedBy: joe.atzberger at liblime.com
   Estimated Hours: 0.0
 Change sponsored?: ---


Because we use inline style="..." and event attributes like onclick="...", the
Total Validator plugin reports errors, since we have not declared default
script language and stylesheet type.  In practice, I believe all browsers will
handle this fine, but as a technical point, TV is correct.

output_html_with_http_headers should probably send headers:
  Content-Style-Type: text/css
  Content-Script-Type: text/javascript

http://www.w3.org/TR/html401/present/styles.html#h-14.2.1
http://www.w3.org/TR/html401/interact/scripts.html#h-18.2.2.1

This would be a broader fix that could still be overridden by META tags if, in
some unlikely future, a page actually uses a different default script or style.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list