HTML5 will incorporate high definition extensions


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements UNIX and Linux RSS News HTML5 will incorporate high definition extensions
# 1  
Old 04-01-2008
HTML5 will incorporate high definition extensions

Tue, 01 Apr 2008 10:30:00 GMT
PILTDOWN, UK - High definition HTML is coming to a site near you -- whether you will see it is another matter. An addition to the HTML5 working draft specification was approved by the World Wide Web Consortium (W3C) working group over the weekend, including several new HTML elements and attributes designed to support output on high definition displays. But due to patent protection, open source Web browsers may not be allowed to implement a significant portion of the standard.


Source...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. What is on Your Mind?

HTML5 Elements for UNIX.COM

You may notice some new headers and section labels on existing pages and sections. I have been updating the site to be fully HTML5 compliant and have started to wrap various HTML templates for the site with HTML 5 elements like the ones below: <article> Defines an article in a document... (7 Replies)
Discussion started by: Neo
7 Replies

2. What is on Your Mind?

Definition of Bytes

A byte is the smallest unit of storage which can be accessed in a computer's memory- either in RAM or ROM.It also holds exactly 8 bits.But its old view one byte was sufficient to hold one 8 bit character.Modern days especially on .NET or international versions of Win 32, 16 bits is needed. ... (2 Replies)
Discussion started by: stoudtLion
2 Replies

3. Shell Programming and Scripting

what would a script include to find CPU's %system time high and user time high?

Hi , I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( . how to find cpu's system high time and user time high in a script?? thanks , help would be appreciated ! :) (9 Replies)
Discussion started by: sushwey
9 Replies

4. Red Hat

apache high cpu load on high traffic

i have a Intel Quad Core Xeon X3440 (4 x 2.53GHz, 8MB Cache, Hyper Threaded) with 16gig and 1tb harddrive with a 1gb port and my apache is causing my cpu to go up to 100% on all four cores heres my http.config <IfModule prefork.c> StartServers 10 MinSpareServers 10 MaxSpareServers 15... (4 Replies)
Discussion started by: awww
4 Replies

5. Shell Programming and Scripting

How to incorporate mutiple commands in Autosys commandline on UNIX

Hi, I am having a problem running multiple commands in a autosys command line. For example I would like to run a perl script first and then add sleep command after that in the same autosys job like below insert_job: xxxxxxxxx command: `perlscript.pl ; sleep 180` Perlscript.pl... (0 Replies)
Discussion started by: waavman
0 Replies

6. UNIX for Dummies Questions & Answers

Definition of $-

Could someone please direct me to a link that gives the definitions for each of the letters from the results of the $- environment variable? It would be nice to know what shell options each of the letters represents, but I am specifically looking for the shell option for 'c' (lowercase c). Thank... (12 Replies)
Discussion started by: sszd
12 Replies

7. OS X (Apple)

SigmaTel High Definition Audio 9200

Would anyone here know how modify the appleHDA.kext for use with a Sigmatel HD Audio STAC9200? Help would be much appreciated. Thank you (0 Replies)
Discussion started by: Heather
0 Replies

8. UNIX for Advanced & Expert Users

Sun: High kernel usage & very high load averages

Hi, I am seeing very high kernel usage and very high load averages on my system (Although we are not loading much data to our database). Here is the output of top...does anyone know what i should be looking at? Thanks, Lorraine last pid: 13144; load averages: 22.32, 19.81, 16.78 ... (4 Replies)
Discussion started by: lorrainenineill
4 Replies
Login or Register to Ask a Question
HTML::HTML5::Microdata::Parser(3pm)			User Contributed Perl Documentation		       HTML::HTML5::Microdata::Parser(3pm)

NAME
HTML::HTML5::Microdata::Parser - fairly experimental parser for HTML 'microdata' SYNOPSIS
use HTML::HTML5::Microdata::Parser; my $parser = HTML::HTML5::Microdata::Parser->new($html, $baseURI); my $graph = $parser->graph; DESCRIPTION
This package aims to have a roughly compatible API to RDF::RDFa::Parser. Microdata is an experimental metadata format, not in wide use. Use this module at your own risk. $p = HTML::HTML5::Microdata::Parser->new($html, $baseuri, \%options, $storage) This method creates a new HTML::HTML5::Microdata::Parser object and returns it. The $xhtml variable may contain an XHTML/XML string, or a XML::LibXML::Document. If a string, the document is parsed using HTML::HTML5::Parser and HTML::HTML5::Sanity, which may throw an exception. HTML::HTML5::Microdata::Parser does not catch the exception. The base URI is used to resolve relative URIs found in the document. Options [default in brackets]: * alt_stylesheet - Magic rel="alternate stylesheet". [1] * auto_config - See section "Auto Config" [0] * mhe_lang - Process <meta http-equiv=Content-Language>. [1] * prefix_empty - URI prefix for itemprops of untyped items. [undef] * strategy - URI generation strategy for itemprops of typed items. [HTML::HTML5::Microdata:: Strategy::Heuristic] * tdb_service - thing-described-by.org when possible. [0] * xhtml_base - Process <base href> element. [1] * xhtml_lang - Process @lang. [1] * xhtml_meta - Process <meta>. [0] * xhtml_cite - Process @cite. [0] * xhtml_rel - Process @rel. [0] * xhtml_time - Process <time> element more nicely. [0] * xhtml_title - Process <title> element. [0] * xml_lang - Process @xml:lang. [1] $storage is an RDF::Trine::Storage object. If undef, then a new temporary store is created. $p->xhtml Returns the HTML source of the document being parsed. $p->uri Returns the base URI of the document being parsed. This will usually be the same as the base URI provided to the constructor, but may differ if the document contains a <base> HTML element. Optionally it may be passed a parameter - an absolute or relative URI - in which case it returns the same URI which it was passed as a parameter, but as an absolute URI, resolved relative to the document's base URI. This seems like two unrelated functions, but if you consider the consequence of passing a relative URI consisting of a zero-length string, it in fact makes sense. $p->dom Returns the parsed XML::LibXML::Document. $p->set_callbacks(\%callbacks) Set callback functions for the parser to call on certain events. These are only necessary if you want to do something especially unusual. $p->set_callbacks({ 'pretriple_resource' => sub { ... } , 'pretriple_literal' => sub { ... } , 'ontriple' => undef , }); Either of the two pretriple callbacks can be set to the string 'print' instead of a coderef. This enables built-in callbacks for printing Turtle to STDOUT. For details of the callback functions, see the section CALLBACKS. "set_callbacks" must be used before "consume". "set_callbacks" itself returns a reference to the parser object itself. $p->consume The document is parsed for Microdata. Nothing of interest is returned by this function, but the triples extracted from the document are passed to the callbacks as each one is found. The "graph" method automatically calls "consume", so normally you don't need to call it manually. If you're using callback functions, it may be useful though. $p->consume_microdata_item($element) You almost certainly do not want to use this method. It will consume a single Microdata item, assuming that $element is an element that does or should have the @itemscope attribute set. Returns the URI or blank node identifier for the item. This method is exposed mostly for the benefit of HTML::HTML5::Microdata::ToRDFa. $p->graph() This method will return an RDF::Trine::Model object with all statements of the full graph. $p->graphs() Provided for RDF::RDFa::Parser compatibility. CALLBACKS
Several callback functions are provided. These may be set using the "set_callbacks" function, which taskes a hashref of keys pointing to coderefs. The keys are named for the event to fire the callback on. pretriple_resource This is called when a triple has been found, but before preparing the triple for adding to the model. It is only called for triples with a non-literal object value. The parameters passed to the callback function are: o A reference to the "HTML::HTML5::Microdata::Parser" object o A reference to the "XML::LibXML::Element" being parsed o Subject URI or bnode (string) o Predicate URI (string) o Object URI or bnode (string) The callback should return 1 to tell the parser to skip this triple (not add it to the graph); return 0 otherwise. pretriple_literal This is the equivalent of pretriple_resource, but is only called for triples with a literal object value. The parameters passed to the callback function are: o A reference to the "HTML::HTML5::Microdata::Parser" object o A reference to the "XML::LibXML::Element" being parsed o Subject URI or bnode (string) o Predicate URI (string) o Object literal (string) o Datatype URI (string or undef) o Language (string or undef) Beware: sometimes both a datatype and a language will be passed. This goes beyond the normal RDF data model.) The callback should return 1 to tell the parser to skip this triple (not add it to the graph); return 0 otherwise. ontriple This is called once a triple is ready to be added to the graph. (After the pretriple callbacks.) The parameters passed to the callback function are: o A reference to the "HTML::HTML5::Microdata::Parser" object o A reference to the "XML::LibXML::Element" being parsed o An RDF::Trine::Statement object. The callback should return 1 to tell the parser to skip this triple (not add it to the graph); return 0 otherwise. The callback may modify the RDF::Trine::Statement object. ITEMPROP URI GENERATION STRATEGY
The "itemprop" attribute does not need to be a full URI. <div itemscope itemtype="http://example.com/Person"> <span itemprop="phoneNumber">01234 567 890</span> </div> The "strategy" option passed to the constructor tells the parser how to convert "phoneNumber" in the above example into a URI. This can be a callback function, or an object or class that provides a "generate_uri" method. Three strategies are bundled with this distribution: o HTML::HTML5::Microdata::Strategy::Basic - don't attempt to convert to a URI o HTML::HTML5::Microdata::Strategy::Heuristic - smart strategy, the default o HTML::HTML5::Microdata::Strategy::Microdata0 - official strategy of early Microdata drafts AUTO CONFIG
HTML::HTML5::Microdata::Parser has a lot of different options that can be switched on and off. Sometimes it might be useful to allow the page being parsed to control some of the options. If you switch on the 'auto_config' option, pages can do this. A page can set options using a specially crafted <meta> tag: <meta name="http://search.cpan.org/dist/HTML-HTML5-Microdata-Parser/#auto_config" content="alt_stylesheet=0&amp;prefix_empty=http://example.net/" /> Note that the "content" attribute is an application/x-www-form-urlencoded string (which must then be HTML-escaped of course). Semicolons may be used instead of ampersands, as these tend to look nicer: <meta name="http://search.cpan.org/dist/HTML-HTML5-Microdata-Parser/#auto_config" content="alt_stylesheet=0;prefix_empty=http://example.net/" /> Any option allowed in the constructor may be given using auto config, except 'auto_config' itself. SEE ALSO
XML::LibXML, RDF::Trine, RDF::RDFa::Parser, HTML::HTML5::Parser, HTML::HTML5::Sanity. <http://www.perlrdf.org/>. AUTHOR
Toby Inkster <tobyink@cpan.org>. COPYRIGHT AND LICENCE
Copyright (C) 2009-2011 by Toby Inkster This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. perl v5.14.2 2011-10-26 HTML::HTML5::Microdata::Parser(3pm)