Bug 61735 - FILESAVE as HTML looses "Label Field" form control with error message
Summary: FILESAVE as HTML looses "Label Field" form control with error message
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version: Inherited From OOo
Hardware: x86-64 (AMD64) All
: low enhancement
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-03 13:26 UTC by Norbert X
Modified: 2013-03-07 17:05 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Test file with form controls (14.19 KB, application/vnd.oasis.opendocument.text)
2013-03-03 13:26 UTC, Norbert X
Details
HTML Output (5.61 KB, text/html)
2013-03-03 13:27 UTC, Norbert X
Details
Sample document in correct HTML 4.01 Transitional (691 bytes, text/html)
2013-03-07 13:40 UTC, Rainer Bielefeld Retired
Details
Sample document in correct HTML 4.01 Transitional (added <label...> without "for=" attribute) (849 bytes, text/html)
2013-03-07 16:30 UTC, Norbert X
Details

Description Norbert X 2013-03-03 13:26:07 UTC
Created attachment 75830 [details]
Test file with form controls

Hello!

I was going to create a simple web-form, which contain some Labels, Text boxes, Checkboxes etc.
I created new ODT document, opened "Form Controls" Toolbar, and found needed form elements here.

I discovered that if I save a document with "Label Field" it will not exported to HTML file (if I select File-Save As). I get a warning message with text "Warning saving the document test_from_odt:
Write Error.
Document could not be completely saved."

Why I get this warning message? As far I know in HTML there is an equivalent representations of form controls - <label>...</label> for "Label Field".
So I hope you can add <label> representation for "Label Field".

This bug exists in 3.5.7.2 (Ubuntu 12.04 LTS) and 4.0.0.3 (Gentoo 13 amd64).
Comment 1 Norbert X 2013-03-03 13:27:03 UTC
Created attachment 75831 [details]
HTML Output
Comment 2 crazyskeggy 2013-03-03 17:49:13 UTC
Comment on attachment 75830 [details]
Test file with form controls

Edit odt file's mimetype so that it is downloadable (previously was plaintext)
Comment 3 crazyskeggy 2013-03-03 18:05:20 UTC
I can confirm this with LibO 4.0.0 and Chrome 25.0.1364.97 on Windows XP. The field titled "Label Field" shows an unclickable piece of text saying "Label Field" in LibO, and a blank section in Chrome.
After inspecting the page's source, Chrome tells me there is just a blank <p> (paragraph) item there. Exportign also results in the same error.
Comment 4 Rainer Bielefeld Retired 2013-03-07 13:39:08 UTC
Effect is reproducible with any Version (on WIN) I tested back until OOo 2.0.3

But is it a Bug? I do not think that <label> can be used as an independent thing, and so  LibO might proceed correcting that? Please see 
 <http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.9.1>

I will attach A Valid Html Document to demonstrate how <Label> is to be used.
For A use on HTML like ODF allows we would need a HTML definition link to proove that. 

@nrbrtx:
Can you provide any html standard, a Valid page or similar underpinning your bug-suspect?
Comment 5 Rainer Bielefeld Retired 2013-03-07 13:40:15 UTC
Created attachment 76118 [details]
Sample document in correct  HTML 4.01 Transitional

See comment before how to use
Comment 6 Norbert X 2013-03-07 16:30:09 UTC
Created attachment 76123 [details]
Sample document in correct HTML 4.01 Transitional (added <label...> without "for=" attribute)

Hello, Rainer!

If you talk about validity  - you can test the document with the following link 
"http://validator.w3.org/check?uri=https%3A%2F%2Fbugs.freedesktop.org%2Fattachment.cgi%3Fid%3D76118&charset=%28detect+automatically%29&doctype=Inline&group=0".

If I modify your example (add one more label without for= and without <input>) the document is still valid.

So you can convert LO "Label Fields" to HTML <label>s safely.
Comment 7 Rainer Bielefeld Retired 2013-03-07 17:05:21 UTC
(In reply to comment #6)
Good point!

Although I doubt that that is a common and intended use of the <label> tag, it might save some trouble for some of our users to export a <label> tag the way you suggested.

Unfortunately because of limited manpower HTML Export related bugs have very low priority.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.