Trivial change - adding getElementsByClassName to Document

This commit is contained in:
nathan g. christenson 2015-10-23 09:47:53 -05:00
parent 756d775d89
commit fb8de78d2e
1 changed files with 5 additions and 0 deletions

5
dom.d
View File

@ -4479,6 +4479,11 @@ class Document : FileResource {
return root.getElementsByTagName(tag);
}
/// ditto
Element[] getElementsByClassName(string tag) {
return root.getElementsByClassName(tag);
}
/** FIXME: btw, this could just be a lazy range...... */
Element getFirstElementByTagName(string tag) {
if(loose)