Permalink
Browse files

QtWebEngine: Implement webelem.classes

  • Loading branch information...
The-Compiler committed Sep 7, 2016
1 parent 5220491 commit fca37abf55b1e8b1639c8a885eda99e48d48d28d
@@ -71,8 +71,7 @@ def style_property(self, name, *, strategy):
def classes(self):
"""Get a list of classes assigned to this element."""
- log.stub()
- return []
+ return self._js_dict['class_name'].split()
def tag_name(self):
"""Get the tag name of this element.
@@ -36,6 +36,7 @@ window._qutebrowser.webelem = (function() {
"text": elem.text,
"tag_name": elem.tagName,
"outer_xml": elem.outerHTML,
+ "class_name": elem.className,
"rects": [], // Gets filled up later
};
@@ -139,7 +139,6 @@ Feature: Using hints
# The actual check is already done above
Then no crash should happen
- @qtwebengine_todo: webelem.classes is not implemented yet
Scenario: Hinting with ACE editor
When I open data/hints/ace/ace.html
And I hint with args "inputs" and follow a

0 comments on commit fca37ab

Please sign in to comment.