dom: Added 'dom.active.start' support

This commit is contained in:
Paul Beckingham 2016-07-16 12:14:17 -04:00
parent e3f03c7524
commit 97e8d6d558

View file

@ -51,12 +51,22 @@ bool domGet (
return true;
}
// dom.active.start
if (pig.skipLiteral (".start") &&
latest.range.is_open ())
{
value = latest.range.start.toISOLocalExtended ();
return true;
}
// dom.active.tag.count
if (pig.skipLiteral (".tag.count"))
{
value = format ("{1}", latest.tags ().size ());
return true;
}
// dom.active.tag.<N>
pig.save ();
int n;
if (pig.skipLiteral (".tag.") &&