These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sun Apr 23, 2017 7:38 pm Advanced search

Where are itemscope and itemtype defined

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

Where are itemscope and itemtype defined

Postby mozillanerd » Tue Apr 30, 2013 9:24 pm

I have not been able to find where itemscope and itemtype are defined. I have not found a DTD for HTML5 and there does not seem to be one.
Thanks
mozillanerd
<h6>
 
Posts: 3
Joined: Tue Apr 30, 2013 9:05 pm

Re: Where are itemscope and itemtype defined

Postby zcorpan » Thu May 02, 2013 12:13 pm

zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Re: Where are itemscope and itemtype defined

Postby mozillanerd » Sun May 05, 2013 12:55 am

The problem I am trying to solve is that of driving a validator. With a DTD you can, with a spec, I don't know. I have seen Microsofts attempt at defining a DTD for HTML5 -incomplete and inaccurate <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-transitional.dtd">

I can use the validator from validator.whatwg.org/‎.

Thanks for the sanswer
mozillanerd
<h6>
 
Posts: 3
Joined: Tue Apr 30, 2013 9:05 pm

Re: Where are itemscope and itemtype defined

Postby JAB Creations » Sun May 05, 2013 6:48 am

The doctype is viewed by many to be legacy and it's been almost completely deprecated. The problem is that what version of HTML does the HTML5 doctype represent? Right now just HTML5 but the lack of a version declaration is the explicit equivalent of Microsoft's *.* HTTP accept header for IE7 when in fact IE did not even support XHTML. While browsers do not define HTML by a version it still creates conflict with validators because HTML < HTML6+.
User avatar
JAB Creations
<aside>
 
Posts: 566
Joined: Tue Mar 13, 2007 4:48 am
Location: Sarasota Florida, USA

Re: Where are itemscope and itemtype defined

Postby mozillanerd » Mon May 06, 2013 7:08 am

Thanks!
I am seeking the grammar used by the WHATWG validator; otherwise, the code would suffice.
mozillanerd
<h6>
 
Posts: 3
Joined: Tue Apr 30, 2013 9:05 pm

Re: Where are itemscope and itemtype defined

Postby anosh » Wed Apr 08, 2015 7:23 am

nice post helps me alot thanks


anosh g
anosh
<h6>
 
Posts: 1
Joined: Wed Apr 08, 2015 7:22 am

Re: Where are itemscope and itemtype defined

Postby zcorpan » Mon Feb 01, 2016 11:08 pm

The code is at https://github.com/validator/validator

See e.g. https://github.com/validator/validator/search?utf8=✓&q=itemscope (it seems it uses RELAXNG and custom Java code to validate microdata)
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron