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 21259 - Shouldn't it be possible to set a value-property on every tag? E.g.: <span itemprop="sex" value="M">Guy</span>
Summary: Shouldn't it be possible to set a value-property on every tag? E.g.: <span it...
Status: RESOLVED WORKSFORME
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: 2013-03-12 18:24 UTC by contributor
Modified: 2013-04-12 23:37 UTC (History)
2 users (show)

See Also:


Attachments

Description contributor 2013-03-12 18:24:56 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html
Multipage: http://www.whatwg.org/C#the-basic-syntax
Complete: http://www.whatwg.org/c#the-basic-syntax

Comment:
Shouldn't it be possible to set a value-property on every tag? E.g.: <span
itemprop="sex" value="M">Guy</span>

Posted from: 5.56.145.226
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.155 Safari/537.22
Comment 1 Ian 'Hixie' Hickson 2013-04-12 23:37:29 UTC
You can:

   <span itemprop="sex">M</span>

...sets "sex" to "M".

If you are asking "shouldn't it be possible to set a _hidden_ value on every tag", then the answer is intentionally that you have to use <meta> for this, as <meta> is ugly, which discourages hidden data, which we want to discourage because it bit rots faster than visible data.