Issue 12295 - Style tag in header is missing type attribute
Summary: Style tag in header is missing type attribute
Status: ACCEPTED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.0
Hardware: PC Windows NT
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-03-13 03:43 UTC by Unknown
Modified: 2013-08-07 14:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Test Word doc for HTML export (198.00 KB, application/octet-stream)
2003-06-26 19:24 UTC, prgmgr
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-03-13 03:43:07 UTC
(The file attached to 12294 was used to generate this error)
The style tag within the head tags is missing the required type attribute.
While 3.2 did not require a type attribute, it also states that style is a
"...place holder for the introduction of style sheets..." and "user agents
should hide the contents of these elements."  Since the only version of HTML
that recognizes the style element is 4.0, the 4.0 guidelines should be followed.
Comment 1 Unknown 2003-05-19 22:04:42 UTC
Still occurs in OO v1.1b, even when the DTD specified by OO is for
HTML 4.0.
Comment 2 prgmgr 2003-06-26 19:24:07 UTC
Rick, thank you for this information.

Verified RH 9.0, 1.1 Beta 2.

<STYLE> tag inside the <HEAD> element does not have the TYPE attribute
as specified in

http://www.w3.org/TR/html401/present/styles.html#edef-STYLE
Comment 3 prgmgr 2003-06-26 19:24:51 UTC
Created attachment 7166 [details]
Test Word doc for HTML export
Comment 4 prgmgr 2003-06-26 19:25:23 UTC
.
Comment 5 Unknown 2003-06-26 20:24:11 UTC
Just curios, why the push to 2.0?  This seems like a simple fix for 1.1.
Comment 6 h.ilter 2003-06-30 10:35:31 UTC
Reassigned to ES
Comment 7 eric.savary 2003-07-07 10:43:43 UTC
Reassigned to MIB
Comment 8 michael.brauer 2003-08-19 09:22:33 UTC
Since all user agents use CSS by default, P4 seems to me the correct
priority.
Comment 9 Unknown 2003-08-19 19:04:42 UTC
Just beware that while the user-agents you have used may have
defaulted to text/css, this may not always be the case as the
specification doesn't define a default.

http://www.w3.org/TR/html401/present/styles.html#edef-type-STYLE
"This attribute specifies the style sheet language of the element's
contents and overrides the default style sheet language. The style
sheet language is specified as a content type (e.g., "text/css").
Authors must supply a value for this attribute; there is no default
value for this attribute."
Comment 10 andreas.martens 2003-09-12 15:10:26 UTC
.
Comment 11 eric.savary 2003-09-30 17:36:08 UTC
According to the OpenOffice.org roadmap 
(http://tools.openoffice.org/releases) this issue was retargeted to 
OOo Later.
Comment 12 box 2006-10-16 11:53:13 UTC
This bug still exists in OO 2.0.4. Is it such a fuzz to change this so that it
saves a HTML file like this:

<STYLE TYPE="TEXT/CSS">

Please fix this simple bug.
Comment 13 box 2007-09-03 08:39:52 UTC
This bug seems to be fixed in OO 2.2.1. When generating HTML output, this output
now is W3C valid (the <STYLE TYPE="TEXT/CSS"> has been added).

Please set this bug to RESOLVED.