This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19648 - 'display' of input[type=hidden] should always have computed value of 'none'
Summary: 'display' of input[type=hidden] should always have computed value of 'none'
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-21 05:04 UTC by contributor
Modified: 2013-03-21 22:43 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2012-10-21 05:04:16 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html
Multipage: http://www.whatwg.org/C#hidden-elements
Complete: http://www.whatwg.org/c#hidden-elements

Comment:
'display' of input[type=hidden] should always have computed value of 'none'

Posted from: 124.193.152.238
User agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0.1
Comment 1 Kang-Hao (Kenny) Lu 2012-10-21 05:18:07 UTC
When set with 'display: block !important;', from Tapir's testing:

IE9, Chrome: <input type=hidden> not displayed but getComputedStyle gives 'block'.
Firefox, Opera: <input type=hidden> not displayed but getComputedStyle gives 'none'.

Firefox and Opera's behavior seems saner and should be listed along with <noscript>
Comment 2 Kang-Hao (Kenny) Lu 2012-10-21 05:21:09 UTC
See also: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1858
Comment 3 Ian 'Hixie' Hickson 2013-01-29 23:05:39 UTC
And: http://software.hixie.ch/utilities/js/live-dom-viewer/saved/2078
Comment 4 Ian 'Hixie' Hickson 2013-03-21 22:41:59 UTC
None of them render anything, so I agree that it makes more sense to do it like <noscript>.
Comment 5 contributor 2013-03-21 22:43:40 UTC
Checked in as WHATWG revision r7765.
Check-in comment: <input type=hidden> doesn't ever render
http://html5.org/tools/web-apps-tracker?from=7764&to=7765