Issue 19666 - HTML import/export: should be HTML (4.01 or later) compliant
Summary: HTML import/export: should be HTML (4.01 or later) compliant
Status: ACCEPTED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC4
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
: 4976 6443 39748 127633 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-09-16 21:43 UTC by fv3
Modified: 2019-02-04 01:13 UTC (History)
10 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description fv3 2003-09-16 21:43:07 UTC
In a newly created HTML document, the DOCTYPE is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

The HTML 4.0 specification (and the 4.01 specification, which should be used
instead, but that's a different issue) clearly states the DOCTYPE should be like
this for HTML 4.0 Transitional:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
        "http://www.w3.org/TR/REC-html40/loose.dtd">

(For 4.01 Transitional, like this:
   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
      "http://www.w3.org/TR/html4/loose.dtd">    )

(NB: Mozilla, in particular, requires a properly formed DOCTYPE of 4.01 or later
to recognize the HTML as "standards compliant" and render it as such.)
Comment 1 mci 2003-09-18 11:33:00 UTC
reassigned to es
Comment 2 tamblyne 2003-10-24 05:15:10 UTC
Confirmed OOo 1.1.0
Comment 3 eric.savary 2003-10-24 14:54:21 UTC
ES->MIB: I don't think the reference to the DTD is mandatory.
Comment 4 fv3 2003-10-24 16:28:43 UTC
Please read section 7.2 of the HTML 4.01 Recommendation.  It is
available here: http://www.w3.org/TR/html4/ .  In part, it states:

"A valid HTML document declares what version of HTML is used in the
document.  The document type declaration names the document type
definition (DTD) in use for the document (see [ISO8879] [p.353] )."

In addition, keep in mind that some browsers (those that use a Gecko
base, for example) determine how to render the HTML based upon the
DOCTYPE declared.  A missing DOCTYPE results in the HTML being
rendered in a mode that comforms to the pattern used by Netscape
Communicator 4.x.  
Comment 5 tamblyne 2003-10-24 16:48:07 UTC
http://www.w3.org/QA/2002/04/valid-dtd-list.html

I had intended to include this link.  
Comment 6 michael.brauer 2003-10-30 12:18:49 UTC
I agree that it is not the best solution that the doctype claims to be
HTML4, but the document content uses extension to HTML4. However,
these extensions are required for round trip of features HTML hasn't,
like fields. It might be an option to define a new DTD for these
extensions, but I'm not sure whether all browsers would recognize the
document to be HTML then. So in the short term, there is no solution
to this issue.
Comment 7 fv3 2003-10-30 14:40:23 UTC
My request was that OpenOffice produce a VALID DOCTYPE when outputting
HTML.   That seems pretty straight forward to me.

What extensions?  
Comment 8 michael.brauer 2003-10-30 15:50:13 UTC
You question is correct. The doctype declaration itself seems to be
incorrect. Please take my apologies for the wrong interpretation of
your  issue.
Comment 9 fv3 2003-11-06 15:09:13 UTC
These additional resources may be useful:

W3C "Tip" about using a valid DTD:
http://www.w3.org/QA/Tips/Doctype

Zeldman @ A List Apart: "Fix Your Site With the Right DOCTYPE!":
http://www.alistapart.com/articles/doctype/
Comment 10 Peter 2019-02-02 14:16:37 UTC
*** Issue 6443 has been marked as a duplicate of this issue. ***
Comment 11 Peter 2019-02-02 14:17:11 UTC
*** Issue 4976 has been marked as a duplicate of this issue. ***
Comment 12 Peter 2019-02-02 14:18:51 UTC
*** Issue 127633 has been marked as a duplicate of this issue. ***
Comment 13 Peter 2019-02-02 14:19:50 UTC
*** Issue 39748 has been marked as a duplicate of this issue. ***
Comment 14 Peter 2019-02-02 14:22:19 UTC
Changing title to a more generic feedback.
I chose this Issue over other due to the links.
Comment 15 White Phoenix 2019-02-04 01:13:32 UTC
Fine, as long as it gets fixed.