mirror of https://github.com/adamdruppe/arsd.git
Merge pull request #71 from nathanchristenson/add-getElementsByClassName-to-Document
Trivial change - adding getElementsByClassName to Document
This commit is contained in:
commit
ae7a067ea1
5
dom.d
5
dom.d
|
@ -4479,6 +4479,11 @@ class Document : FileResource {
|
||||||
return root.getElementsByTagName(tag);
|
return root.getElementsByTagName(tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// ditto
|
||||||
|
Element[] getElementsByClassName(string tag) {
|
||||||
|
return root.getElementsByClassName(tag);
|
||||||
|
}
|
||||||
|
|
||||||
/** FIXME: btw, this could just be a lazy range...... */
|
/** FIXME: btw, this could just be a lazy range...... */
|
||||||
Element getFirstElementByTagName(string tag) {
|
Element getFirstElementByTagName(string tag) {
|
||||||
if(loose)
|
if(loose)
|
||||||
|
|
Loading…
Reference in New Issue