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).
Created attachment 75831 [details] HTML Output
Comment on attachment 75830 [details] Test file with form controls Edit odt file's mimetype so that it is downloadable (previously was plaintext)
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.
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?
Created attachment 76118 [details] Sample document in correct HTML 4.01 Transitional See comment before how to use
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.
(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.