Auto merge of #10762 - canaltinova:has_attributes, r=nox

Implement Element::hasAttributes

Fixes #10748 .
Implement Element::hasAttributes. I'm not sure if tests are enough. I'm open to suggestion :)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10762)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-04-22 15:11:20 -07:00
commit 8163347e34
6 changed files with 55 additions and 9 deletions

View file

@ -35,6 +35,8 @@ interface Element : Node {
[Pure]
sequence<DOMString> getAttributeNames();
[Pure]
boolean hasAttributes();
[Pure]
DOMString? getAttribute(DOMString name);
[Pure]
DOMString? getAttributeNS(DOMString? namespace, DOMString localName);