Menu

#1478 CSS selector :focus not supported

Latest SVN
closed
RBRi
None
1
2013-02-16
2013-01-28
Frank Danek
No

Currently the CSS selector :focus is not supported, which leads to an error when I try to open one of my pages (Atlassian JIRA).

I already have a testcase for this but here at home I have only IE9 and FF18. So I will test tomorrow in the office where I have IE8 and FF17 and add the testcase to this issue then.

As you have the currently focused element in
com.gargoylesoftware.htmlunit.html.HtmlPage.getFocusedElement()
it should not be a big problem to extend com.gargoylesoftware.htmlunit.javascript.host.css.CSSStyleSheet.selectsPseudoClass(BrowserVersion, AttributeCondition, DomElement)
to support :focus.

Discussion

  • Frank Danek

    Frank Danek - 2013-01-29

    Here is a test for FF17, IE8 and IE9.

     
  • Marc Guillemot

    Marc Guillemot - 2013-01-29

    The test is not working while driving FF17 with WebDriver but I think that the test is correct and that it is a bug in the FirefoxDriver.

     
  • RBRi

    RBRi - 2013-01-29
    • assigned_to: RBRi
     
  • RBRi

    RBRi - 2013-01-29
    • status: open --> accepted
     
  • RBRi

    RBRi - 2013-02-16
    • status: accepted --> closed
     
  • RBRi

    RBRi - 2013-02-16

    fixed in SVN, thanks for reporting

     

Log in to post a comment.