incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-468) [weinre] VML rule in CSS causes Weinre to not show style rules
Date Thu, 26 Jul 2012 18:03:33 GMT

    [ https://issues.apache.org/jira/browse/CB-468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13423297#comment-13423297
] 

Patrick Mueller commented on CB-468:
------------------------------------

So, what happens if you wrap the {{element.webkitMatchesSelector selector}} call in a try/catch,
and have the catch return false?  eg,

{noformat}
try
    return element.webkitMatchesSelector selector
catch e
    return false
{noformat}

I suspect in the best possible scenario, you'll never actually get a "match", and so you'd
never see an element match a "vml" selector.  But at least it would show other relevant selectors,
which it sounds like what it's not doing now.
                
> [weinre] VML rule in CSS causes Weinre to not show style rules
> --------------------------------------------------------------
>
>                 Key: CB-468
>                 URL: https://issues.apache.org/jira/browse/CB-468
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>            Reporter: Patrick Mueller
>            Assignee: Patrick Mueller
>
> from https://groups.google.com/forum/#!topic/weinre/aniuboNVP6k/discussion
> When I use this CSS rule:
> v\:fill { }
> Test page: http://mosney.net/weinre-vml-css.html
> The CSS is valid, but Weinre throws this error in the Server Console:
> 2012-03-22 10:47:58.808:WARN:weinre:target 1285550896: weinre: invocation exception on
WiCSSImpl.getStylesForNode(): Error: SYNTAX_ERR: DOM Exception 12
> Consequently, CSS rules don't show up on the right hand pane of the inspector.
> I've solved this by temporarily commenting out VML style rules but figured I'd log the
issue in case the developer wants to pick it up for a future release.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message