Anne van Kesteren | 28 Aug 2004 19:14
Picon

getElementsBySelector()


I first proposed this on the WHATWG mailing list[1], but Ian told me I
could better address it here.

Simon Willison once made a sample implementation[2] of this function in
Javascript:

#   document.getElementsBySelector('div#main p a.external')
#
# This will return an array containing all of the links that have
# 'external' in their class attribute and are contained inside a
# paragraph which is itself contained inside a div with its id
# attribute set to 'main'.

I hope this made it clear how it should work.

Currently there are only methods available that require knowledge of 
XPath[3] (although that is just a note, not a real standard yet) by the UA.

[1]<http://listserver.dreamhost.com/pipermail/whatwg-whatwg.org/2004-August/001945.html>
[2]<http://simon.incutio.com/archive/2003/03/25/getElementsBySelector>
[3]<http://www.w3.org/TR/2004/NOTE-DOM-Level-3-XPath-20040226/>

--

-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>

Daniel Glazman | 28 Aug 2004 21:04
Picon

Re: getElementsBySelector()


Anne van Kesteren wrote:

> #   document.getElementsBySelector('div#main p a.external')
> #
> # This will return an array containing all of the links that have
> # 'external' in their class attribute and are contained inside a
> # paragraph which is itself contained inside a div with its id
> # attribute set to 'main'.

Yes. I think it is highly time to have that as a standardized API.
All our visual CSS-conformant browsers already have the implem for it,
a lot of web sites, using Simon's js workaround or another script equivalent,
and it could be _really_ useful to web authors.

</Daniel>

Mark Birbeck | 29 Aug 2004 01:06

ANN: formsPlayer combines XForms and the CSS3 Speech Module to produce multimodal forms


ANNOUNCEMENT
The formsPlayer [1] team have made available a talking shopping-cart
demonstration to illustrate the ease with which speech can be integrated
into an XForms [2] application. Using declarative mark-up rather than
script, an author is now able to indicate that XForms data is to be spoken,
as well as choose a 'voice' and language processor that should be used to
speak the information.

Just as with visual XForms messages, spoken ones are completely dynamic
(with text coming from the XForms data model), and can be triggered using
DOM 2 Events or XML Events [3].

And if no text-to-speech (TTS) engine is detected by formsPlayer, messages
are rendered visually instead, making it easy to use the same XForms mark-up
to target other platforms and processors.

MULTIMODAL SHOPPING-CART
A Flash video of the multimodal shopping-cart sample is available here (with
sound):

    <http://www.formsPlayer.com/demo/self-serve/self-serve-800x600.html>

The full XForms sample is available here:

    <http://www.formsPlayer.com/demo/self-serve/self-serve.html>

Note that this live sample requires formsPlayer and Microsoft Agent [4] to
be installed. Information on how to do this is available here:

(Continue reading)


Gmane