[Bug 13825] New: Suggestion: http://www.w3.org/TR/microdata/

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13825

           Summary: Suggestion: http://www.w3.org/TR/microdata/
           Product: HTML WG
           Version: unspecified
          Platform: Other
               URL: http://www.w3.org/mid/CAJSCMeFUcZhj9zEABTmSU5T6a1BUTJu
                    h194dZO=JBObqZ6jx4A@mail.gmail.com
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: mike+html-wg-mailbot@w3.org
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


public-html-comments posting from: Brent Jacobs <brent.jacobs@gmail.com>
http://www.w3.org/mid/CAJSCMeFUcZhj9zEABTmSU5T6a1BUTJuh194dZO=JBObqZ6jx4A@mail.gmail.com

Dear W3C

I would like to make a suggestion regarding The Basic
Syntax<http://www.w3.org/TR/microdata/#the-basic-syntax>section of the
HTML Microdata draft.

My suggestion relates to the mark up for items containing a single property:
<span itemscope><span itemprop="name">The Castle</span></span>

There is a potential to reduce the amount of markup for single property
items.  The itemscope attribute could be placed in the same span tag as the
itemprop attribute:
<span itemscope itemprop="name">The Castle</span>

This would reduce overhead of the additional span tag declaring the item.
 It is now clear that the item contains a single property.  It also makes
the markup neater and easier to read.

As similar syntax is already used for nested items (in red), it would
complimentary to define single property items in the same way.
<div itemscope>
  <p>Name: <span itemprop="name">Amanda</span></p>
  <p>Band: <span itemprop="band" *itemscope*>
        <span itemprop="name">Jazz Band</span> (
        <span itemprop="size">12</span> players)</span></p>
</div>

Kind regards,
Brent

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Thursday, 18 August 2011 13:14:17 UTC