Extracting Structure from HTML using Adam's dom.d
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jan 22 08:22:06 PST 2015
On Thu, 22 Jan 2015 11:40:52 +0000
Gary Willoughby via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
> On Thursday, 22 January 2015 at 11:23:49 UTC, Nordlöw wrote:
> > What is the meaning of selectors such as
> >
> > `a[href]`
> >
> > used in
> >
> > doc.querySelectorAll(`a[href]`)
> >
> > ?
>
> Select all `a` tags that have a `href` attribute.
>
> You can also select using the attribute value too. For example
> get all the text inputs in a form:
>
> doc.querySelectorAll(`form[name="myform"] input[type="text"]`)
>
> dom.d is awesome!
i miss it in Phobos.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150122/30a37aaf/attachment.sig>
More information about the Digitalmars-d-learn
mailing list