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 16342 - itemprop not allowed on XHTML
Summary: itemprop not allowed on XHTML
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-12 23:45 UTC by Roman Romanov
Modified: 2015-08-23 07:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Roman Romanov 2012-03-12 23:45:45 UTC
I try to use XHTML5 with microdata and have error:
"Attribute itemprop not allowed on XHTML element meta at this point."
Happend on:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
 itemscope="itemscope"
 itemtype="http://schema.org/Person">
  <head>
<meta name="author" itemprop="name" content="Some Name" />
<meta name="description" itemprop="description" content="Some Description" />
But specification "A vocabulary and associated APIs for HTML and XHTML"(http://www.w3.org/TR/html5/microdata.html#names:-the-itemprop-attribute)
say:
"Every HTML element may have an itemprop attribute specified ..."
Comment 1 Michael[tm] Smith 2012-03-13 05:46:34 UTC
The microdata spec defines some further restrictions -

http://dev.w3.org/html5/md/#content-models

"If a meta element has an itemprop attribute, the name, http-equiv, and charset attributes must be omitted, and the content attribute must be present."

So you need to omit the name attribute