Closed Bug 1137307 Opened 9 years ago Closed 9 years ago

Bug reports are not valid HTML5 pages

Categories

(Bugzilla :: User Interface, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: LpSolit, Assigned: LpSolit)

Details

Attachments

(1 file, 1 obsolete file)

Tons of errors are thrown by HTML5 validators about show_bug.cgi.
Attached patch patch, v1 (obsolete) — Splinter Review
- some cells have an obsolete colspan="2"
- some labels have a for="foo" attribute pointing to nowhere when the user is not allowed to edit fields
- the "deadline" id is duplicated
- custom fields are PROCESS'ed instead of INCLUDE'd, propagating their own variable values to other custom and hardcoded fields
- the defer attribute can only be used in <script> when src="foo" is also defined

Now show_bug.cgi is valid HTML5 when a power user is logged in, when a powerless user is logged in, and when the user is logged out.
Attachment #8569981 - Flags: review?(dylan)
Comment on attachment 8569981 [details] [diff] [review]
patch, v1

Wait, I found a bug in it.
Attachment #8569981 - Flags: review?(dylan)
Comment on attachment 8569981 [details] [diff] [review]
patch, v1

Ah no, the patch is correct. :)
Attachment #8569981 - Flags: review?(dylan)
Attached patch patch, v1.1Splinter Review
Forgot to include flag/list.html.tmpl in the patch.
Attachment #8569981 - Attachment is obsolete: true
Attachment #8569981 - Flags: review?(dylan)
Attachment #8570106 - Flags: review?(dylan)
Attachment #8570106 - Flags: review?(dylan) → review?(dkl)
Comment on attachment 8570106 [details] [diff] [review]
patch, v1.1

Review of attachment 8570106 [details] [diff] [review]:
-----------------------------------------------------------------

r=dkl

::: template/en/default/bug/edit.html.tmpl
@@ +289,4 @@
>              bug = bug, field = bug_fields.rep_platform,
>              no_tds = 1, value = bug.rep_platform
> +            editable = can_edit_rep_platform %]
> +        [%+ INCLUDE bug/field.html.tmpl 

remove whitespace on commit
Attachment #8570106 - Flags: review?(dkl) → review+
Flags: approval?
Flags: approval5.0?
Flags: approval?
Flags: approval5.0?
Flags: approval5.0+
Flags: approval+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   c325240..7d0c10e  master -> master

To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   2ca129b..d725139  5.0 -> 5.0
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
(In reply to Frédéric Buclin from comment #1)
> - custom fields are PROCESS'ed instead of INCLUDE'd, propagating their own
> variable values to other custom and hardcoded fields

Argh, I already did this mistake in bug 768573 comment 4. I added a comment in the template to not do this mistake again. (Thanks to Selenium scripts for catching that!)

To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   d82782d..0bcbc0f  master -> master

To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
   4cbac02..74d7fca  5.0 -> 5.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: